#8415·flagsmith

Restrict deletion of features other features depend on

Author: khvn26Created Aug 31, 2026Updated Sep 23, 2026

Add dependency validation to DELETE /api/v1/projects/{project_pk}/features/{id}/.

Acceptance criteria

  • Deleting (not archiving) a feature is rejected with a 400 while any SegmentFlagReference row points at it.
  • Removing the last reference allows deletion to proceed.