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 --user nkpIxMK9ucUUE7FvfNpdAf:x \
-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 --user nkpIxMK9ucUUE7FvfNpdAf:x \
-H "Accept: application/json" \
https://test.host/shares/project-alpha/folders/root/files/presentation1-pptx/trash