Skip to content

Delete namespace (cascade)

DELETE
/v1/ns/{nsid}
curl --request DELETE \
--url https://example.com/v1/ns/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "confirm_id": "example", "confirm_timestamp": 1 }'

Requires confirmation body with confirm_id (nsid string) and confirm_timestamp (unix int). Live calls anywhere in the subtree normally block the cascade with 409; pass ?force=true (or X-Force: true) to bypass that guard and flush the stuck in-progress call rows as part of the purge.

Debug-only: force exists for removing a broken namespace whose call-tracking rows are stuck. Those rows normally TTL out on their own. The confirmation body is still required with force.

nsid
required
string format: uuid

Namespace UUID

force
boolean

Bypass the live-call guard and flush stuck in-progress call rows (debug-only).

Media typeapplication/json
object
confirm_id
string
confirm_timestamp
integer
Examplegenerated
{
"confirm_id": "example",
"confirm_timestamp": 1
}

Deleted

Media typeapplication/json
object
success
required
boolean
Example
{
"success": true
}

Impact preview (no confirmation supplied)

Media typeapplication/problem+json

RFC 7807 Problem Details

object
type

Problem type slug URI

string
title
string
status
integer
detail
string
key
additional properties
any
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example"
}

Error response

Media typeapplication/problem+json

RFC 7807 Problem Details

object
type

Problem type slug URI

string
title
string
status
integer
detail
string
key
additional properties
any
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example"
}