[DELETE] /file

[DELETE] /file

/api/dms/objects/{objectId}/contents/file

Description

To delete all the contents of the DMS object with the given objectId. The result JSON contains the new content element's information. Please note this endpoint is not available for typeless objects. Typeless objects can be deleted and recreated. Ordinarily this endpoint returns the complete loaded object back (which has then no content-streams because the content was deleted). Within the minimalResponse query parameter a HTTP/204 response can be forced on success if the complete response is not necessary.

Request
Method

DELETE

Request optional Query Parameter

  • minimalResponse (Boolean) - The response is on success HTTP/204. This speeds up the endpoint by 30%.

Response
Format

JSON

Minimum Version

5.5.0

Request
Example

/api/dms/objects/2563/contents/file

Result
Example

See 1.3 Result Format