Delete the file with the specified file ID

delete/files/{fileId}

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

1Not Available

Path Parameters

NameTypeRequiredDescription
fileId
string
true

The ID of the file.

Responses

StatusMeaningDescription
204No Content

The file was successfully deleted.

400Bad Request

The request failed because the file ID could not be parsed correctly. The file ID must be a UUID.

Schema
403Forbidden

The 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 Found

The request failed. The file could not be deleted.

Schema