Delete a namespace for the authenticated organization. This will delete all the data associated with the namespace.
TypeScript
import { Agentset } from "agentset"; const agentset = new Agentset({ apiKey: 'agentset_xxx' }); await agentset.namespaces.delete("ns_xxx"); console.log("Namespace queued for deletion");
{ "success": true, "data": { "id": "<string>", "name": "<string>", "slug": "<string>", "organizationId": "<string>", "createdAt": "<string>", "embeddingConfig": { "provider": "<string>", "model": "text-embedding-3-small", "apiKey": "<string>" }, "vectorStoreConfig": { "provider": "<string>" } } }
Default authentication mechanism
The id of the namespace (prefixed with ns_)
"ns_123"
The deleted namespace
Show child attributes