For AI agents: a machine-readable documentation index for this API is available at /llms.txt. Every page is also available as Markdown: append ".md" to the URL or send an "Accept: text/markdown" request header.

Move a file or folder to the bin; if a transfer holds it, 409 transfer_active until confirm_delete_transfers=true

Moves a file or folder to the bin, where the app's retention rule applies and restoreFile can bring it back. If a transfer holds the item the answer is 409 transfer_active and its details name the transfers; repeat with confirm_delete_transfers=true to delete those transfers as well. Protected items are 403 protected. Returns deleted: true and the ids of any transfers deleted with it. Needs files:write.

Do this with AI

I want to move a file or folder to the bin; if a transfer holds it, 409 transfer_active until confirm_delete_transfers=true. Use the Tarkle API. Read the reference for this operation and follow it exactly: https://project-03b42162.restlessdocs.com/endpoint/deletefile.md Authenticate with your API key as a Bearer token in the Authorization header. Then make the request for me and tell me what came back.

Paste this into Claude, Cursor, or any AI assistant and it will do it for you.