Skip to main content

Delete a file or directory

DELETE 

/api/v1/files

Permanently deletes the file or directory at path and returns an empty object. There is no trash; directories are removed with everything inside. Shares, file drops, favorites and recent-file entries for the item, or for anything inside a deleted directory, are deleted too, so existing share and file drop links stop working. A delete by a signed-in user is logged as deleted activity. Signed-in users may delete in their home, group folders where they are owner or editor, and writable shares they receive; without a session only writable public link or email shares are accepted. A path that does not exist returns 404.

Request​

Responses​

Deleted. Empty object.