```sql
SELECT id FROM waffle_flag_mkt WHERE name = 'override-app-purchase' INTO @flag_id;
DELETE FROM waffle_flag_mkt_users WHERE flag_id = @flag_id;
DELETE FROM waffle_flag_mkt_groups WHERE flag_id = @flag_id;
```