feature_flags

Bulk delete feature flags by filter criteria or explicit IDs.

Accepts either:

  • {"filters": {...}} - Same filter params as list endpoint (search, active, type, etc.)
  • {"ids": [...]} - Explicit list of flag IDs (no limit)

Returns same format as bulk_delete for UI compatibility.

Config version 1 flags are deleted with batched updates, and cache invalidation runs once at the end. Config version 2 flags are deleted one at a time through update_flag. Each one bumps its version and commits on its own.

post/api/projects/{project_id}/feature_flags/bulk_delete/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/feature_flags/bulk_delete/
  • Auth: HTTP bearer

Path parameters

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Request body

idsinteger[]

Explicit feature flag IDs to soft-delete. Mutually exclusive with filters.

Response

Changes

No recorded changes to this operation across all 1 revision of this API.