Delete segment
delete_segmentRemove a Beehiiv audience segment to clean up publication targeting; set confirm=true to authorize this state-changing deletion.
Instructions
Delete segment. Changes account state and requires confirm=true for the user-requested action. OAuth integrations require segments:write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Named private account from BEEHIIV_ACCOUNTS. Defaults to BEEHIIV_DEFAULT_ACCOUNT or the first configured account. | |
| confirm | No | Set true only when the user asked for exactly this action. | |
| segment_id | Yes | The prefixed ID of the segment object | |
| publication_id | Yes | The prefixed ID of the publication object |