Drive > Files > File/Directory

Trash a file, move it to the trash can.

delete/2/drive/{drive_id}/files/{file_id}

Request

  • Base URL
    https://api.infomaniak.com
  • URL
    https://api.infomaniak.com/2/drive/{drive_id}/files/{file_id}
  • Auth
    HTTP bearer

Path parameters

drive_idinteger required

Drive identifier

file_idinteger required

File identifier

Response

OK

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

Example response

{
  "result": "success",
  "data": {
    "cancel_id": "00000000-e89b-12d3-a456-000000000000"
  }
}

Changes

    • warning

      added the new forbidden_error enum value to the // response property for the response status

    • warning

      added the new lock_error enum 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