Files

Delete a file

Deletes a file and its associated keys from the project.

Project Type Compatibility:

  • ❌ Software projects (localization_files) - File deletion not supported for Software projects
  • ❌ Documents projects (paged_documents) - Branching not supported for Documents projects
  • ❌ Marketing projects (content_integration, marketing, marketing_integrations) - Branching not supported for Marketing projects

Note: This endpoint requires branching support, which is only available for Software projects. However, Software projects do not support file deletion. This creates a logical conflict - this endpoint may not be practically usable.

Requires <code>write_files</code> OAuth access scope.

delete/projects/{project_id}:{branch}/files/{file_id}

Request

  • Base URL
    https://api.lokalise.com/api2
  • URL
    https://api.lokalise.com/api2/projects/{project_id}:{branch}/files/{file_id}
  • Auth
    API key in header X-Api-Token

Path parameters

project_idstring required

A unique project identifier

branchstring required

Branch name

file_idnumber required

A unique identifier of the file.

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.