Basic
Delete a file
Changed onDeletes the file at the specified path in the specified environment.
delete/cms/source-code/2026-09/{environment}/content/{path}
Request
- Base URLhttps://api.hubapi.com
- URLhttps://api.hubapi.com/cms/source-code/2026-09/{environment}/content/{path}
- AuthOAuth 2Authorization code: https://app.hubspot.com/oauth/authorizeToken URL: https://api.hubapi.com/oauth/v1/token scopes: content
Path parameters
environmentstring required
The environment from which the content file will be deleted. This identifies the specific context or workspace within your HubSpot account.
pathstring required
The path of the content file to be deleted. This should be a valid string that specifies the location of the file within the environment.
Response
No content
Changes
- info
the endpoint scheme security
private_appswas removed from the API
- info