Delete Collection
DELETE
/api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/example/ai/vector-db/collections/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://dashboard.quantcdn.io/api/v3/organizations/example/ai/vector-db/collections/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'Deletes a vector database collection and all its documents. This action cannot be undone.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”organisation
required
string
The organisation ID
collectionId
required
string format: uuid
The collection ID
Responses
Section titled “Responses”Collection deleted successfully
Media typeapplication/json
object
success
boolean
message
string
Example
{ "success": true, "message": "Collection deleted successfully"}Access denied
Collection not found
Failed to delete collection
