LiquidFiles Documentation
LiquidFiles Documentation

Delete File Shares API

There are two delete methods, trash and delete. Trash will soft-delete the file, i.e. after a trash, you can still restore the file. If you use the Delete method (without /trash), the file is permanently 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 "Authorization: Bearer nkpIxMK9ucUUE7FvfNpdAf" \
     -H "Accept: application/json" \
     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 "Authorization: Bearer nkpIxMK9ucUUE7FvfNpdAf" \
     -H "Accept: application/json" \
     https://test.host/shares/project-alpha/folders/root/files/presentation1-pptx/trash