Skip to main content
DELETE
/
v1
/
namespace
/
{namespaceId}
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>"
    }
  }
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

namespaceId
string
required

The id of the namespace (prefixed with ns_)

Examples:

"ns_123"

Response

The deleted namespace

success
boolean
required
data
object
required
I