---
title: "Delete Company File"
method: DELETE
path: "/api/v1/files/{fileId}"
tags: ["Company Files", "Public API"]
---

# Delete Company File

`DELETE /api/v1/files/{fileId}`

Permanently removes a company file and its associated storage. The company must have the Files tool enabled; otherwise the file is treated as not found. Read-only file types (e.g. e-signature templates) are silently skipped. No response body is returned on success. Use "Company Files > List Company Files" to obtain file IDs.

OAuth Scopes: company_file.write

## Path parameters

- `fileId` integer, required

## Response `200`

The company file was deleted successfully. No response body is returned.

## Other responses

- `403` — The API user does not have permission to delete the requested file.
- `404` — The requested file was not found, or the Files tool is not enabled for the company.
- `500` — An internal server error occurred.

---

[API](https://skmtc.net/bamboohr/apis/bamboohr-api.md) · [All operations](https://skmtc.net/bamboohr/apis/bamboohr-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bamboohr/bamboohr-api/revisions/19ebf391a399/schema)
