Skip to main content
DELETE
/
app
/
v1
/
organizations
/
{organizationId}
/
projects
/
{projectId}
/
collections
/
{id}
Delete Collection
curl --request DELETE \
  --url https://api.example.com/app/v1/organizations/{organizationId}/projects/{projectId}/collections/{id}

Path Parameters

organizationId
string
required
Organization ID
projectId
string
required
Project ID
id
string
required
Collection ID

Response

{
  "success": true,
  "message": "Collection coll123 deleted successfully"
}
Collections containing components cannot be deleted. Move or delete all components from the collection first.

Error Responses

Collection Not Found

{
  "error": {
    "code": "NOT_FOUND",
    "message": "Collection not found"
  }
}

Collection Not Empty

{
  "error": {
    "code": "COLLECTION_NOT_EMPTY",
    "message": "Cannot delete a collection that contains items"
  }
}

Code Examples

curl -X DELETE "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/collections/coll123" \
  -H "Authorization: Bearer YOUR_JWT"