Delete a Content Library Media File
delete
/rest/api/v1.3/clItems/{itemPath}
Request
Path Parameters
-
itemPath: string
The complete path of the media file starting with /contentlibrary.
Response
Supported Media Types
- application/json
Default Response
Root Schema : Content Library Media Files
Type:
objectTitle:
Show Source
Content Library Media Files-
itemData:
string
Base64 encoded binary string of the media file content.
-
itemPath:
string
The complete path of the media file starting with /contentlibrary.
Examples
Tip:
Need Higher API Call Limits? We have an API on Asynchronous API with the same functionality. Please use the Asynchronous Delete Content Library Items API.This interface is used to delete a content library media item.
A successful request requires the following headers:
| FIELDS | DESCRIPTION |
|---|---|
| Authorization | <AUTH_TOKEN> |
Sample Request URL :
/rest/api/v1.3/clItems/contentlibrary/abn/testcreate_50.png
Sample Response: Success
{
"itemPath": "/contentlibrary/abn/testcreate_50.png",
"itemData": null,
"links": [
{
"rel": "self",
"href": "/rest/api/v1.3/clItems/contentlibrary/abn/testcreate_50.png",
"method": "DELETE"
},
{
"rel": "createContentLibraryItem",
"href": "/rest/api/v1.3/clItems",
"method": "POST"
}
]
}
Sample Response: Failure
{
"type": "",
"title": "Document not found",
"errorCode": "DOCUMENT_NOT_FOUND",
"detail": "Document not found:/contentlibrary/abn/testcreate_50.png",
"errorDetails": []
}