Delete File Version Rendition - Alfresco Content Services - 23.4 - 23.4 - Ready - Alfresco - external

Alfresco Content Services

Platform
Alfresco
Product
Alfresco Content Services
Release
23.4
License

This endpoint is available in Content Services 7.1.1 and newer versions.

Deleting a rendition for a specific version of a file node is easy. Here is how to do it.

API Explorer URL: http://localhost:8080/api-explorer/#!/versions/deleteVersionRendition

See also:

To remove a rendition, such as doclib, pdf, avatar, imgpreview, medium etc for a specific version of a file, use the following HTTP DELETE call: http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/{id}/versions/{versionId}/renditions/{renditionId}

The Node Identifier for the file node whose rendition is to be deleted is specified with the {id} parameter. The file version is specified with the {versionId} parameter, which is the version label. The rendition identifier is specified with the {renditionId} parameter.

The following call will delete a rendition with id doclib for the text file version identified with the d8f561cc-e208-4c63-a316-1ea3d3a4e10e Node Identifier and the 2.0 version label:

$ curl -X DELETE -H 'Accept: application/json' -H 'Authorization: Basic VElDS0VUXzA4ZWI3ZTJlMmMxNzk2NGNhNTFmMGYzMzE4NmNjMmZjOWQ1NmQ1OTM=' 'http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/d8f561cc-e208-4c63-a316-1ea3d3a4e10e/versions/2.0/renditions/doclib/'  
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:-*   0
List Deleted Folders and Files (Trashcan)

If the rendition is successfully deleted then the content for that rendition node will be cleared.