curl --request DELETE \
--url https://api.example.com/app/v1/organizations/{organizationId}/projects/{projectId}/collections/{id}Delete a collection
curl --request DELETE \
--url https://api.example.com/app/v1/organizations/{organizationId}/projects/{projectId}/collections/{id}{
"success": true,
"message": "Collection coll123 deleted successfully"
}
{
"error": {
"code": "NOT_FOUND",
"message": "Collection not found"
}
}
{
"error": {
"code": "COLLECTION_NOT_EMPTY",
"message": "Cannot delete a collection that contains items"
}
}
curl -X DELETE "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/collections/coll123" \
-H "Authorization: Bearer YOUR_JWT"