Drive > Files > File/Directory
Trash
Changed onTrash a file, move it to the trash can.
delete/2/drive/{drive_id}/files/{file_id}
Request
- Base URLhttps://api.infomaniak.com
- URLhttps://api.infomaniak.com/2/drive/{drive_id}/files/{file_id}
- AuthHTTP bearer
Path parameters
drive_idinteger required
Drive identifier
file_idinteger required
File identifier
Response
OK
Example response
{
"result": "success",
"data": {
"cancel_id": "00000000-e89b-12d3-a456-000000000000"
}
}Changes
- warning
added the new
forbidden_errorenum value to the//response property for the response status - warning
added the new
lock_errorenum value to the//response property for the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- warning