Delete a file

Delete a file with the specified ID.

Note: This endpoint does not check if the specified file is in use. Use with caution.

Both partner tokens and entity user tokens can be used for authentication.

Considerations for invoice attachments

Deleting a file does not delete it from the attachments list of accounts receivable invoices, quotes, and credit notes because these documents contain an inline copy of all referenced resources. To delete a file from attachments, call PATCH /receivables/{receivable_id} and update the attachments list to exclude the deleted file.

Path parameters

file_idstringRequired
ID of the file you want to delete.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

x-monite-versionstringRequired

Errors