Delete a domain from a workspace. It cannot be undone. This will also delete all the links associated with the domain.
PHP
declare(strict_types=1); require 'vendor/autoload.php'; use Dub; $sdk = Dub\Dub::builder() ->setSecurity( 'DUB_API_KEY' ) ->build(); $response = $sdk->domains->delete( slug: 'acme.com' ); if ($response->object !== null) { // handle response }
{ "slug": "acme.com" }
Default authentication mechanism
The domain name.
"acme.com"
The domain was deleted.
The response is of type object.
object
Was this page helpful?