Basic

Deletes the file at the specified path in the specified environment.

delete/cms/source-code/2026-09/{environment}/content/{path}

Request

  • Base URL
    https://api.hubapi.com
  • URL
    https://api.hubapi.com/cms/source-code/2026-09/{environment}/content/{path}
  • Auth
    OAuth 2
    Authorization code: https://app.hubspot.com/oauth/authorize
    Token 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