Delete a domain from a workspace. It cannot be undone. This will also delete all the links associated with the domain.
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" }
Default authentication mechanism
The domain name.
"acme.com"
The domain was deleted.
The response is of type object.
object
Was this page helpful?