Basic

Delete an app's feature flag

Changed on

Delete a feature flag in an app. For example, delete the hs-release-app-cards flag after all accounts have been migrated.

delete/feature-flags/2026-09/{appId}/flags/{flagName}

Request

  • Base URL
    https://api.hubapi.com
  • URL
    https://api.hubapi.com/feature-flags/2026-09/{appId}/flags/{flagName}
  • Auth
    API key in query parameter hapikey

Path parameters

appIdinteger required

The unique identifier of the application from which the feature flag will be deleted.

flagNamestring required

The name of the feature flag to be deleted.

Response

successful operation

appIdinteger required

The ID of the app

defaultState'ABSENT' | 'OFF' | 'ON' required

The flag state for any portal that doesn't have an override value

flagNamestring required

The name of the flag

overrideState'ABSENT' | 'OFF' | 'ON'

An optional flag value that overrides all others for this flag name and app, including portal-level values

Changes

  • 2026-09de25edbdcd67Revision changes
    • info

      the endpoint scheme security developer_hapikey was added to the API

    • info

      the endpoint scheme security oauth2 was removed from the API