---
title: "Delete a file"
method: DELETE
path: "/cms/source-code/2026-03/{environment}/content/{path}"
tags: ["Basic"]
---

# Delete a file

`DELETE /cms/source-code/2026-03/{environment}/content/{path}`

Deletes the file at the specified path in the specified environment.

## Path parameters

- `environment` string, required
- `path` string, required

## Response `204`

No content

## Other responses

- `default` — An error occurred.

---

[API](https://skmtc.net/hubspot/apis/hubspot-api-specification.md) · [All operations](https://skmtc.net/hubspot/apis/hubspot-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hubspot/hubspot-api-specification/versions/f9c7181056c5/schema)
