DELETE /files/file_id

Delete a file in Zuva. This endpoint can be used if you need to delete a file in Zuva prior to its expiry. A successful deletion request will return a simple 204 No Content response.

Headers

Authorization (required) - Requires the standard authentication header used in the system.

Parameters

There are no parameters for this endpoint.

  • file_id Path Required

    the file identifier for the document to be deleted. This is the file identifier returned from a successful POST or PUT /files response.

Code Sample
curl -X DELETE -H "Accept: application/json"  
-H "Authorization: Bearer <token>" 
-H "Content-Type: application/json"  
-d "{}" 
https://<base_url>/api/v2/files/<file_id>
zdai.file.delete(file_id = 'file_id')
Response Codes
  • 204 No Content
    The file was deleted successfully.
  • 404 Not Found
    The file does not exist, has been deleted, or has not finished uploading.
  • 403 Forbidden
    Invalid or missing authentication token.
  • 500 Internal Server Error
    Something went wrong unrelated to the users request.

Response Data

  • No Response

    only response code returned


Need Help?

Couldn’t find the information you were looking for or need more assistance?

Contact us at support@zuva.ai