Content
Delete a file
Delete a specific content file from the specified environment in your HubSpot CMS. This operation is useful for removing outdated or unnecessary files from your source code repository. Ensure you have the necessary permissions to perform this action.
delete/cms/source-code/2026-03/{environment}/content/{path}
Path parameters
environmentstring required
The environment from which the content file will be deleted. This could refer to different stages such as development, staging, or production.
pathstring required
The specific path to the content file that you want to delete. This should be a valid path string.
Response
No content