Delete files

You can delete file by their UUID.

API Permissions

FILE_DELETE

Delete a single file

DELETE /v4/files/{file_uuid}

Try it out

Copy-paste the cURL request in your Terminal or click on the API Explorer tab to see the API in action.

host: 'https://api.filerobot.com/fdocs' path: '/v4/files/d04b0c9b-2193-5f94-83ba-aaf034450000' headers: X-Filerobot-Key: fa5fe3303dd34e1da4810915c7c3fd6f theme: clouds-midnight editor_theme: clouds_midnight method: DELETE render: curl_tab: true

Response

{
  "status": "success",
  "action": "file_deleted",
  "file_uuid": "d04b0c9b-2193-5f94-83ba-aaf034450000"
}

Delete multiple files

To delete multiple files at one, you can list the UUIDs in the body of the request.

DELETE /v4/files

Request body

{
    "files_uuids": [
        "0b33957a-de4f-53e6-a4c2-6a3c1e650000",
        "a85542bd-0d33-577d-9269-71895b250000"
    ]
}

Try it out

Copy-paste the cURL request in your Terminal or click on the API Explorer tab to see the API in action.

host: 'https://api.filerobot.com/fdocs' path: '/v4/files' variables: folder_uuid: 55f9a2a6-3cfb-5430-8814-27be3f1a2962 headers: X-Filerobot-Key: fa5fe3303dd34e1da4810915c7c3fd6f theme: clouds-midnight editor_theme: clouds_midnight method: DELETE body: | { "files_uuids": [ "0b33957a-de4f-53e6-a4c2-6a3c1e650000", "a85542bd-0d33-577d-9269-71895b250000" ] } render: curl_tab: true

Response

{
    "status": "success",
    "action": "files_deleted",
    "files_uuids": [
        "0b33957a-de4f-53e6-a4c2-6a3c1e650000",
        "a85542bd-0d33-577d-9269-71895b250000"
    ]
}