cURL
curl --request DELETE \ --url https://api.hubapi.com/cms/v3/source-code/{environment}/content/{path} \ --header 'Authorization: Bearer <token>'
This response has no body data.
Deletes the file at the specified path in the specified environment.
Supported products
Required Scopes
The access token received from the authorization server in the OAuth 2.0 flow.
The environment of the file ("draft" or "published").
The file system location of the file.
Was this page helpful?