Folders

Delete folder by path

Changed on

Delete a folder in your HubSpot account using its path. This operation deletes the folder and its contents recursively.

delete/files/2026-09/folders/{folderPath}

Request

  • Base URL
    https://api.hubapi.com
  • URL
    https://api.hubapi.com/files/2026-09/folders/{folderPath}
  • Auth
    OAuth 2
    Authorization code: https://app.hubspot.com/oauth/authorize
    Token URL: https://api.hubapi.com/oauth/v1/token scopes: files.ui_hidden.write

Path parameters

folderPathstring required

The path of the folder to delete.

Response

No content

Changes

    • info

      api tag Folders added

    • info

      api tag Basic removed

    • info

      the security scope files.ui_hidden.write was added to the endpoint's security scheme oauth2

    • info

      the security scope files.delete was removed from the endpoint's security scheme oauth2