---
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.

## Changes

- **2026-03-30** `dc2fdad57f7f` — 2 info
  - api tag `Basic` added
  - api tag `Content` removed
- **2026-03-25** `62586336cea2` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hubspot/apis/hubspot-api-specification/changes/cms/source-code/2026-03/:environment/content/:path/delete.md)

---

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