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

Start free trial

Delete Ticket

Event Tickets has no trash for tickets. This removes one permanently.

It does one thoughtful thing on the way out: the ticket name is stamped onto everyone who already bought one, so an attendee record still says what they hold rather than pointing at nothing.

Before you run it

Permanent, with no trash and no undo, and the call refuses without confirm: true. Existing attendees keep a record naming a ticket that no longer exists — which is the best available outcome, not a good one. The response reports how many people that affected.

At a glance

Abilitytickets/delete-ticket
ToolsetEvent Tickets — toolset/event-tickets
GroupEvent Tickets › Tickets
RequiresEvent Tickets, active on the site
Capabilitymanage_options
SafetyDestructive — deletes stored values, and refuses to run without confirm: true
RepeatableNot idempotent — each call changes the row set, so re-running is not a no-op
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

The confirmation gate runs before anything is touched, so a refused call leaves the ticket and its buyers alone.

Read attendees_affected in the response. If it is non-zero, real people hold that ticket and someone should know — deleting a sold ticket is a customer-service event, not a tidy-up.

Where the goal is to stop sales rather than erase the ticket, closing the sale window with tickets/update-ticket does that without touching anybody’s record.

Input

NameTypeRequiredWhat it is
ticket_idintegerYesThe ticket ID.
confirmbooleanYes — must be trueThe irreversibility gate. Without it the call is refused before anything is touched.

What comes back

NameTypeWhat it is
ticket_idintegerThe ticket that was deleted.
deletedbooleanWhether it was removed.
attendees_affectedintegerHow many people already held this ticket.
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 test ticket I created on this event — nobody bought one.

It resolves to one call:

{
  "ability": "tickets/delete-ticket",
  "parameters": {
    "ticket_id": 981,
    "confirm": true
  }
}

Worth knowing

  • No trash, no undo. Check attendee counts before running it.
  • To stop sales without deleting, set end_date to the past instead.
  • Not idempotent — a second call finds nothing to delete.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading