---
title: "Delete Namespace"
method: DELETE
path: "/api/agent-data/namespaces/{namespace_id}"
tags: ["agent-data"]
---

# Delete Namespace

`DELETE /api/agent-data/namespaces/{namespace_id}`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/agent-data/namespaces/{namespace_id}`
- Auth: none declared

Delete a database, irreversibly (TOS-7356).

Drops its schema (every table and every row in it) and its three roles in
the environment's Postgres, then removes it here with its migration log
and pending schema change requests. The folder it lived in stays. Only the
environment's owner or a platform admin, the same authority as export.

## Path parameters

- `namespace_id` string, uuid, required

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

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