Send this event when you want to remove any item from the conversation history. The server will respond with a conversation.item.deleted event, unless the item does not exist in the conversation history, in which case the server will respond with an error.

interface ConversationItemDeleteEvent {
    event_id?: string;
    item_id: string;
    type: "conversation.item.delete";
}

Properties

event_id?: string

Optional client-generated ID used to identify this event.

item_id: string

The ID of the item to delete.

type: "conversation.item.delete"

The event type, must be conversation.item.delete.