> For the complete documentation index, see [llms.txt](https://doc.nextbot.ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.nextbot.ru/functional/integrations/google-kalendar/udalit-sobytie.md).

# Удалить событие

Возникают случаи, когда пользователю необходимо перенести или удалить созданное мероприятие, запись, событие из Google Календаря, для этого нужно добавить отдельную функцию.

*Пример функции для удаления события*:

**Название:** DELETE\_EVENT

**Описание:** Удалить событие из календаря.

**Параметры функции:**

Для удаление события понадобятся параметр\
**event\_id**\
В инструкции для параметра напишите **ID события**.

<figure><img src="/files/ru4R8Y5WJP0k9FONxm5V" alt=""><figcaption></figcaption></figure>

### **Отправка результатов.**

Далее переходим в отправку результатов выберите Google Calendar. Это определяет канал для передачи данных.

**Выбор действия.**

Выберите действия **Удалить событие**

<figure><img src="/files/hfVDUa3Kw0DkAnoOdrN4" alt=""><figcaption></figcaption></figure>

### Выбор календаря <a href="#vybor-kalendarya" id="vybor-kalendarya"></a>

Если выбрать **Способ записи в календарь - Один календарь для всех событий,** то для удаления записи будет браться только с данного календаря.

Если выбрать **Отдельный календарь для каждого значения**, то необходимо выбрать соответствующий параметр функции, в данном случае это созданный параметр **`provider`**

<figure><img src="/files/Gy3wa3Q8qSYvsrhliHDZ" alt=""><figcaption></figcaption></figure>

### ID события для удаления

Выберите параметр функции **`event_id`**, который содержит ID события для удаления и нажмите кнопку "Сохранить".

<figure><img src="/files/Q4leY1VWLQQnXmreZHnq" alt=""><figcaption></figcaption></figure>

Как это работает:\
Клиент успешно записался на определенную дату, сработала функция **`create_event`.** Изменились условия и клиенту нужно перенести запись на другую дату или во все удалить запись обращаемся к ИИ-агенту и просим перенести запись или удалить, тогда сработает данная функция **`delete_event.`**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc.nextbot.ru/functional/integrations/google-kalendar/udalit-sobytie.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
