Deleting a File or Folder

You can use the delete call to mark a document as deleted. The physical documents and the associated database records will be removed by the File Share Sync Archive service based the retention policy.

Sample URL

https://hostname:port/context/rest/v2/documents/delete/{id}

Method

POST

Parameters

Parameter Description
id The ID of the document.

This parameter is required if the path parameter is not present.

path The fully qualified File Share path name.

This parameter is required if the id parameter is not present; otherwise, it is ignored.

Response

HTTP Status Code Description
400 Not Found.

The document either does not exist or the user has no access to it.

Example:

{"message":"The document either doesn't exist or you have no access to it."}