Skip to main content
DELETE
/
:projectId
/
api
/
v7
/
collections
/
:collectionId
Delete Collection
curl --request DELETE \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/collections/:collectionId
Deletes a sub-collection and all its contents (cascade). The root collection cannot be deleted. Returns 204 No Content on success.

Path Parameters

collectionId
string
required
The ID of the collection to delete.

Error Responses

Returned when the collection doesn’t exist, doesn’t belong to the authenticated user, or is the root collection (which cannot be deleted).
{ "error": "Collection not found", "code": "collection/not-found" }
{ "error": "Server error", "code": "collection/server-error" }