---
title: "Delete file"
method: DELETE
path: "/api/v1/projects/{projectUuid}/git/branches/{branch}/files"
tags: ["Git Files"]
---

# Delete file

`DELETE /api/v1/projects/{projectUuid}/git/branches/{branch}/files`

Delete a file from the repository

## Path parameters

- `projectUuid` string, required
- `branch` string, required

## Request body

- object
  - `message` string
  - `sha` string, required
  - `path` string, required

## Response `200`

Success

- ApiGitFileDeletedResponse
  - `results` object, required
    - `deleted` true, required
  - `status` 'ok', required

## Other responses

- `default` — Error

---

[API](https://skmtc.dev/lightdash/apis/lightdash-api.md) · [All operations](https://skmtc.dev/lightdash/apis/lightdash-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lightdash/lightdash-api/revisions/40c933755c9a/schema)
