Delete the file with the specified file ID

delete/files/{fileId}
Internal-Use Only

Deletes the file with the specified ID, if it is not attached to an object. Use the /documents/{objectTypeName}/{objectId}/files/{fileId} endpoint if the file is attached to an object.

Request Samples

1

Response Samples

1No example avaliable

Path Parameters

NameTypeRequiredDescription
fileId
string
true

The ID of the file.

Responses

StatusMeaningDescription
204No ContentThe file was successfully deleted.
400Bad RequestThe request failed because the file ID could not be parsed correctly. The file ID must be a UUID.Schema
403ForbiddenThe request failed. The object does not exist, the user does not have the correct permissions to view the object, or the file is attached to an object. Schema
404Not FoundThe request failed. The file could not be deleted.Schema