Files
Delete file
Permanently delete a file from a workspace.
DELETE
Delete file
Permanently deletes a file from storage and removes its record from the workspace.
Deleting a file does not remove any copy that was pushed onto a computer. A file synced to
Query parameters
Response
Example
Response
The stored object is removed first, then the file record. If removing the
object fails, the endpoint returns 500 and the record is left in place. The
file still appears in the list endpoint. Retry the delete.
/root/Desktop stays on that computer.
Errors
Every error carries the shape{"error": "<message>"}.
Compatibility parameter
Preferid. The older fileId spelling is also accepted as an alias. If both are present with different values the request returns 400. At least one is required.