Mailgun\Api\Domain::delete PHP Метод

delete() публичный Метод

WARNING: This action is irreversible! Be cautious!
public delete ( string $domain ) : DeleteResponse | array | Psr\Http\Message\ResponseInterface
$domain string Name of the domain.
Результат Mailgun\Resource\Api\Domain\DeleteResponse | array | Psr\Http\Message\ResponseInterface
    public function delete($domain)
    {
        Assert::stringNotEmpty($domain);
        $response = $this->httpDelete(sprintf('/v3/domains/%s', $domain));
        return $this->deserializer->deserialize($response, DeleteResponse::class);
    }