DeleteFileΒΆ
- Required for
iOS Android
-
POST/wopi/files/(file_id)ΒΆ The DeleteFile operation deletes a file from a host.
If the file is currently locked, the host should return a 409 Conflict and include an X-WOPI-Lock response header containing the value of the current lock on the file. If the current lock ID is not representable as a WOPI lock (for example, it is longer than the maximum lock length), the host should return a 409 Conflict and set the X-WOPI-Lock response header to the empty string or omit it completely.
- Parameters
file_id (string) β A string that specifies a file ID of a file managed by host. This string must be URL safe.
- Query Parameters
access_token (string) β An access token that the host will use to determine whether the request is authorized.
- Request Headers
X-WOPI-Override β The string
DELETE. Required.
- Status Codes
200 OK β Success
401 Unauthorized β Invalid access token
404 Not Found β Resource not found/user unauthorized
409 Conflict β Lock mismatch/locked by another interface; an X-WOPI-Lock response header containing the value of the current lock on the file must always be included when using this response code
500 Internal Server Error β Server error
501 Not Implemented β Operation not supported
See also
- Standard WOPI request and response headers
In addition to the request/response headers listed here, this operation may also use the Standard WOPI request and response headers.