LiquidFiles Documentation
LiquidFiles Documentation

Delete File Shares API

There are two delete methods, delete and trash. Delete will delete the file in a non-permanent way. I.e. after a delete, you can still restore the file. If you use the Trash method, the file is deleted and will no longer be able to be restored.

Delete

Request Info
Info Value
Request URL /shares/_share_id_/folders/_folder_id_/files/_file_id_
Request VERB DELETE

Example Request in JSON

curl -X DELETE -H "Accept: application/json" -H "Content-Type: application/json" --user nkpIxMK9ucUUE7FvfNpdAf:x https://test.host/shares/project-alpha/folders/root/files/presentation1-pptx

Trash

Request Info
Info Value
Request URL /shares/_share_id_/folders/_folder_id_/files/_file_id_/trash
Request VERB DELETE

Example Request in JSON

curl -X DELETE -H "Accept: application/json" -H "Content-Type: application/json" --user nkpIxMK9ucUUE7FvfNpdAf:x https://test.host/shares/project-alpha/folders/root/files/presentation1-pptx/trash