Delete branch file draft

http
DELETE /projects/{project_reference}/branches/{branchName}/files/{filePath}/draft

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

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
branchNamepathYes
filePathpathYes

Responses

StatusDescription
200Draft discarded; already absent drafts also succeed.
400Missing file path
401Unauthorized
403Project files write capability required. API keys also require delete scope.
404Source file or branch not found
500Server error