Skip to main content
DELETE
/
cms
/
source-code
/
2026-03
/
{environment}
/
content
/
{path}
Delete a file
curl --request DELETE \
  --url https://api.hubapi.com/cms/source-code/2026-03/{environment}/content/{path} \
  --header 'Authorization: Bearer <token>'
This response has no body data.

Supported products

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

environment
string
required

The environment from which the content file will be deleted. This could refer to different stages such as development, staging, or production.

path
string
required

The specific path to the content file that you want to delete. This should be a valid path string.

Pattern: .+

Response

Last modified on March 30, 2026