deleteDigitalContent
DELETE/contents/media/:contentId
Delete a digital content.
The operation removes the link between the digital content and an entity: the digital content
itself is soft-deleted only when it is left orphan, since the same file can be linked to several
entities. When the file is linked to more than one entity, linkedTo tells the server which
DigitalContent_Entity relation has to be removed.
To access the service you need at least one of the following permissions. They are different based on the entity the digital contents are linked to:
| Permission (one of) | Notes |
|---|---|
| createItem | If linked to an Item |
| updateItem | If linked to an Item |
| createItemHierarchy | If linked to a Item Hierarchy |
| updateItemHierarchy | If linked to a Item Hierarchy |
| createTask | If linked to a Task |
| updateTask | If linked to a Task |
| createSurveyDocTemplate | If linked to a Survey Document |
| updateSurveyDocTemplate | If linked to a Survey Document |
| createPurchaseOrderDigitalContent | If linked to a Purchase Document |
| deletePurchaseOrderDigitalContent | If linked to a Purchase Document |
| createSalesOrderDigitalContent | If linked to a Sales Order |
| deleteSalesOrderDigitalContent | If linked to a Sales Order |
| createSalesDocDigitalContent | If linked to a Sales Document |
| deleteSalesDocDigitalContent | If linked to a Sales Document |
| updateMediaFolderContent | If linked to a Media Folder content group |
| deleteMediaFolderContent | If linked to a Media Folder content group |
| updateMediaFolderCategory | If linked to a Media Folder category (its icon) |
| deleteMediaFolderCategory | If linked to a Media Folder category (its icon) |