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 deleted successfully");
{ "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_) The id of the namespace (prefixed with ns_)
The deleted namespace
Show child attributes
The unique ID of the namespace.
The name of the namespace.
The slug of the namespace.
The ID of the organization that owns the namespace.
The date and time the namespace was created.
The embedding model config. If not provided, our managed embedding model will be used. Note: You can't change the embedding model config after the namespace is created.
"OPENAI"
The OpenAI embedding model enum.
text-embedding-3-small
text-embedding-3-large
The vector store config.
"MANAGED_PINECONE_OLD"