DELETE
/
domains
/
{slug}
package main

import(
	"context"
	dubgo "github.com/dubinc/dub-go"
	"log"
)

func main() {
    ctx := context.Background()

    s := dubgo.New(
        dubgo.WithSecurity("DUB_API_KEY"),
    )

    res, err := s.Domains.Delete(ctx, "acme.com")
    if err != nil {
        log.Fatal(err)
    }
    if res != nil {
        // handle response
    }
}
{
  "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.

The response is of type object.