Delete multiple files
DELETE {{api-server}}/:token/{{api-version}}/files
This API request is used to delete multiple files using a list with the UUIDs of the files.
Body attributes
Attribute name | Required | Description | Type |
---|---|---|---|
files_uuids | Yes | UUIDs of the files to be deleted | Array |
Please ensure that the X-Filerobot-Key which is used for the request (the API Key or the Security Template) has both FILEDELETE and OBJECTSFETCH permissions.
Request Body
{"files_uuids"=>["cd4e15eb-ce1f-5a3e-b5dc-5083b6b50000", "54426190-e381-56fd-ba18-47cb19f50000"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Filerobot-Key | string | Filerobot API key | |
Content-Type | string |
RESPONSES
status: OK
{"status":"success","action":"files_deleted","files_uuids":["c0fbed71-ebf2-5cde-a3f8-c8ff2cd50000","e9e5cbf8-7856-50d3-a1b7-1997e2750000"],"api_version":{"hash":"fb3440b980d63376bfcd277b9811349cd7f6280a","datetime":"2023-08-07T23:26:19+07:00"}}