If access permissions are sufficient, files are deleted. If an error occurs during deletion, it will be indicated in the response. Upon deletion, files are moved to the Recycle Bin.
Accepts a list of file IDs.
Returns a list of structures containing either the resulting file ID or the description of any error that occurred during the file deletion. The order of structures in the response corresponds to the order of file IDs in the request.

Request

PATCH /pub/v1/disk/files/deleted

Request body

The resource sent in the request body is  Bulk file deletion — Request. It contains the following writable properties:

{
    "fileIds": [
        "uuid"
    ]
}

Properties

Name Type Description Additional
fileIds[] array of uuid

List of IDs of files to be deleted

Authorization

This request requires the use of one of following authorisation methods: API key

Response

The following HTTP status codes may be returned:

Status code Description Resource
200 OK

Model of the response for bulk file deletion.

Model of the response for bulk file deletion (Bulk file deletion)
422

Model of the response for bulk file deletion.

Model of the response for bulk file deletion (Bulk file deletion)