Delete Trip Item
delete_trip_itemPermanently delete part of a trip: a variant, a destination, a destination option, or an event. Use only when the user rejects something outright — if they might still want it later, deselect the option or toggle the event instead. Deleting a variant or a destination also deletes everything inside it, so confirm with the user first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Which kind of option is being deleted. Required when target is 'option'. | |
| target | Yes | What to delete. | |
| tripId | Yes | Id of the trip, as returned by list_trips or get_trip. | |
| confirm | No | Must be true — confirms deleting the ENTIRE variant and everything inside it (all destinations, options and events). Ask the user before setting it. | |
| eventKey | No | Key of the event on the variant, from get_trip. Required when target is 'event'. | |
| optionKey | No | Key of the accommodation / transport / getting-around option, from get_trip. Same value that select_destination_option calls optionId — the API names it inconsistently. Required when target is 'option'. | |
| variantId | Yes | Id of the trip variant (an alternative version of the trip), from get_trip. | |
| destinationKey | No | Key of the destination inside the variant, from get_trip (e.g. "destination-1"). Required when target is 'destination' or 'option'. |