await luma.events.ticketTypes.delete("evt-abc123", "tkt-xyz789");
null
Ticket types
Delete a ticket type
Delete a ticket type from a Luma event with luma.events.ticketTypes.delete(eventId, ticketTypeId) using the TypeScript SDK’s typed method.
await luma.events.ticketTypes.delete("evt-abc123", "tkt-xyz789");
null
SDK
luma.events.ticketTypes.delete(eventId: string, ticketTypeId: string): Promise<void>
Deletes a ticket type from an event.
await luma.events.ticketTypes.delete("evt-abc123", "tkt-xyz789");
null
Parameters
string
required
Event
api_id from events.list().string
required
Ticket type
api_id from events.ticketTypes.list().Test it
Delete a ticket type you created for testing:const eventId = "evt-abc123";
const ticketType = await luma.events.ticketTypes.create(eventId, {
name: "Delete me",
type: "free",
});
await luma.events.ticketTypes.delete(eventId, ticketType.api_id);
console.log("Deleted");