# Delete a domain

Launch stage: Beta

`DELETE /api/2.0/{name=domains/*}`

`DELETE /api/discover/v1/{name=domains/*}`

Delete a domain. By default the request fails if the domain still has
 Glossary pages; set `force` to delete those pages along with the domain.

API scopes: domains

## Path parameters

- `name` (string, required)
  Full resource name of the domain to delete.
   Format: `domains/{domain_id}`

## Query parameters

- `force` (boolean, optional, Input only)
  When false (default), DeleteDomain is rejected with FAILED_PRECONDITION if
   the domain still has Glossary pages. When true, those pages are deleted
   first and then the domain is removed.

## Response

```json
{}
```

