Delete a Collection
delete
/content/management/api/v1.1/repositories/{id}/collections/{collectionId}
Deletes a collection.
Request
Path Parameters
-
collectionId: string
id of the collection.
-
id: string
Repository id parameter for collections.
Header Parameters
-
X-Requested-With: string
A custom header to mitigate CSRF attacks.Allowed Values:
[ "XMLHttpRequest" ]
Response
204 Response
No content.
400 Response
Bad request.
403 Response
Forbidden.
404 Response
Collection not found. The requested resource not found.
500 Response
Internal server error.
Examples
The following example shows how to delete a collection using its ID by submitting a DELETE request on the REST resource using cURL.
curl -i -X DELETE -H 'X-Requested-With: XMLHttpRequest' 'https://host:port/content/management/api/v1.1/repositories/{id}/collections/{collectionId}'
Example:
/content/management/api/v1.1/repositories/F264EF72737B35991E381047D5B43D87656640771B3C/collections/O9F1CD681C619D182B27A9FA3154E81BEEA1E8587407
Response Code
HTTP/1.1 204 No Content