DELETE
/
domains
/
{slug}
require 'dub'

s = ::OpenApiSDK::Dub.new(
      security: ::OpenApiSDK::Shared::Security.new(
        token: "DUB_API_KEY",
      ),
    )

res = s.domains.delete(slug="acme.com")

if ! res.object.nil?
  # handle response
end
{
  "slug": "acme.com"
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

slug
string
required

The domain name.

Example:

"acme.com"

Response

200
application/json
The domain was deleted.
slug
string
required

The domain name.

Example:

"acme.com"