---
title: "Delete a file"
method: DELETE
path: "/projects/{project_id}/files/{file_id}"
tags: ["Files"]
---

# Delete a file

`DELETE /projects/{project_id}/files/{file_id}`

Deletes a file and its associated keys from the project.

**Project Type Compatibility:**
- ✅ **Documents projects** (paged_documents)
- ✅ **Marketing projects** (content_integration, marketing, marketing_integrations)
- ❌ **Software projects** (localization_files) - *Not supported*

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

## Path parameters

- `project_id` string, required
- `file_id` number, required

## Response `200`

OK

## Other responses

- `400` — Bad Request - Action not supported by this project type

---

[API](https://skmtc.net/lokalise/apis/default-projects.md) · [All operations](https://skmtc.net/lokalise/apis/default-projects/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lokalise/default-projects/revisions/7bceba421b12/schema)
