30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

MailerPress Pro Delete Segment

mailerpress-pro/delete-segment permanently deletes a segment. It requires confirm_name matching the segment’s current name.

No contacts are affected.

Before you run it

No contacts are deleted — a segment is a query, not a membership — but anything referring to the segment by name stops resolving, including campaigns configured to send to it. The conditions themselves are gone and there is no copy; a segment built from a dozen conditions is real work to reconstruct.

At a glance

Abilitymailerpress-pro/delete-segment
ToolsetMailerPress Pro — toolset/mailerpress-pro
GroupMailerPress Pro › Segments
RequiresAcrossAI Pro, plus MailerPress with its Pro add-on active on the site
Capabilitymanage_options
SafetyDestructive — requires confirm_name matching the segment’s current name.
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Pro 0.9.16 and later

How it works

The name guard is checked at delete time rather than against a name you were given earlier, which also catches the case where somebody renamed the segment between your read and your write.

What breaks is references. Segments are addressed by name, so a campaign or automation pointing at the deleted segment has nothing to resolve — and depending on where that reference sits, the failure may not surface until a send.

Checking what uses a segment before deleting is worth doing, and there is no single call that answers it — campaigns and workflows both reference segments.

The conditions are the other loss. A carefully built segment is a piece of audience logic somebody reasoned about, and nothing keeps a copy.

Idempotent: deleting one already gone is a no-op.

Input

NameTypeRequiredWhat it is
idintegerYesThe segment ID.
confirm_namestringYesMust match the segment’s current name. The guard against ID-only mass deletion.
confirmbooleanYes — must be trueThe irreversibility gate. Without it the call is refused before anything is touched.

What comes back

NameTypeWhat it is
idintegerThe segment removed.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

Delete the old lapsed-customers segment.

It resolves to one call:

{
  "ability": "mailerpress-pro/delete-segment",
  "parameters": {
    "id": 4,
    "confirm_name": "Lapsed customers",
    "confirm": true
  }
}

Worth knowing

  • No contacts are deleted.
  • References by name stop resolving, possibly not until a send.
  • The conditions are gone with no copy.
  • Idempotent.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading