Delete file

http
DELETE /projects/{project_reference}/files/{file_path}

Delete a file. Requires project.files.write; API keys also need delete scope.

Parameters

NameInRequiredDescription
project_referencepathYes
file_pathpathYesFile path whose deletion appends a deletion version in main or the selected branch; immutable history remains. URL-encode this path when supplied in a REST URL.
refquery
branchquery
branch_idquery
expected_version_idquery

Responses

StatusDescription
200File deleted.
400Bad request
401Unauthorized
403Forbidden. API keys also require delete scope.
404Not found
409Conflict
500Server error