Delete the hosting configuration for a namespace.
TypeScript
import { Agentset } from "agentset"; const agentset = new Agentset({ apiKey: 'agentset_xxx' }); const ns = agentset.namespace('ns_xxx'); await ns.hosting.delete(); console.log("Hosting deleted");
{ "success": true, "data": { "namespaceId": "<string>", "title": "<string>", "slug": "<string>", "logo": "<string>", "ogTitle": "<string>", "ogDescription": "<string>", "ogImage": "<string>", "systemPrompt": "<string>", "exampleQuestions": [], "exampleSearchQueries": [], "welcomeMessage": "<string>", "citationMetadataPath": "<string>", "searchEnabled": true, "rerankConfig": { "model": "cohere:rerank-v3.5", "limit": 15 }, "llmConfig": { "model": "openai:gpt-4.1" }, "topK": 50, "protected": true, "allowedEmails": [], "allowedEmailDomains": [], "createdAt": "<string>", "updatedAt": "<string>" } }
Default authentication mechanism
The id of the namespace (prefixed with ns_)
"ns_123"
The deleted hosting configuration
Show child attributes