Skip to main content
DELETE
/
ns_delete
Delete a `namespace` and all related data.
curl --request DELETE \
  --url https://api.ragkit.com/v1/ns_delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "namespace": "<string>",
  "recursively_delete_all_data": true
}
'
{
  "success": true,
  "data": {
    "key": "<string>",
    "description": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
namespace
string
required

The key of the namespace to delete.

recursively_delete_all_data
boolean | null

For safety. Set to true to delete the namespace and all related data.

Response

Success

success
enum<boolean>
required

Always true.

Available options:
true,
false
data
object
required

The namespace.