Zum Hauptinhalt springen
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

Autorisierungen

Authorization
string
header
erforderlich

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

Pfadparameter

environment
string
erforderlich

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

path
string
erforderlich

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

Pattern: .+

Antwort

Last modified on April 9, 2026