---
title: "Delete Domain"
method: DELETE
path: "/api/v1/domains/{domain_id}"
tags: ["domains"]
---

# Delete Domain

`DELETE /api/v1/domains/{domain_id}`

## Request

- Base URL: `https://api.gnosari.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.gnosari.com/api/v1/domains/{domain_id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-AUTH-TOKEN`

Delete a domain.

Cannot delete a domain that is being used by agents.
Cannot delete system domains.

## Path parameters

- `domain_id` integer, required

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/gnosari/apis/gnosari-api.md) · [All operations](https://skmtc.dev/gnosari/apis/gnosari-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gnosari/apis/gnosari-api/revisions/f299cf53ae5f?raw)
