This endpoint is available in Content Services 7.1.1 and newer versions.
Deleting a file node rendition is easy. Here is how to do it.
API Explorer URL: http://localhost:8080/api-explorer/#!/renditions/deleteRendition
See also:
To remove a file rendition, such as doclib, pdf, avatar, imgpreview, medium etc use the following HTTP DELETE call: http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/{id}/renditions/{renditionId}
The Node Identifier for the file node whose rendition is to be deleted is specified with the {id} parameter. The rendition identifier is specified with the {renditionId} parameter.
The following call will delete a thumbnail rendition with id doclib for the text file identified with the d8f561cc-e208-4c63-a316-1ea3d3a4e10e Node Identifier:
$ 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/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
If the rendition is successfully deleted then the content for that rendition node will be cleared.