src/Api/Domain.php
public function deleteCredential(string $domain, string $login)
    {
        Assert::stringNotEmpty($domain);
        Assert::stringNotEmpty($login);

        $response = $this->httpDelete(
            sprintf(
                '/v3/domains/%s/credentials/%s',
                $domain,
                $login
            )
        );

        return $this->hydrateResponse($response, DeleteCredentialResponse::class);
    }
public function deleteCredential(string $domain, string $login)
    {
        Assert::stringNotEmpty($domain);
        Assert::stringNotEmpty($login);

        $response = $this->httpDelete(
            sprintf(
                '/v3/domains/%s/credentials/%s',
                $domain,
                $login
            )
        );

        return $this->hydrateResponse($response, DeleteCredentialResponse::class);
    }
public function deleteCredential ( string $ domain , string $ login ) { Assert :: stringNotEmpty ( $ domain ) ; Assert :: stringNotEmpty ( $ login ) ; $ response = $ this -> httpDelete ( sprintf ( '/v3/domains/%s/credentials/%s' , $ domain , $ login ) ) ; return $ this -> hydrateResponse ( $ response , DeleteCredentialResponse :: class ) ; }
Remove a set of SMTP credentials from the specified domain.

@param string $domain name of the domain
@param string $login  SMTP Username

@return DeleteCredentialResponse|array|ResponseInterface
Remove a set of SMTP credentials from the specified domain .