> 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="https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2FNABZVptzPCAUnmp5sNhx%2F%7B31673AEC-035F-46AB-BD84-9C8C81B9D1E1%7D.png?alt=media&amp;token=6b9d790d-d0a5-4228-8f82-b15ca96d2571" alt=""><figcaption></figcaption></figure>

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

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

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

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

<figure><img src="https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2Fj4ntd57XiG97fske6Z8S%2F%D0%BE%D1%82%D0%BF%D1%80%D0%B0%D0%B2%D0%BA%D0%B0%20%D1%80%D0%B5%D0%B7%D1%83%D0%BB%D1%8C%D1%82%D0%B0%D1%82%D0%BE%D0%B2%20%D1%83%D0%B4%D0%B0%D0%BB%D0%B8%D1%82%D1%8C%20%D1%81%D0%BE%D0%B1%D1%8B%D1%82%D0%B8%D0%B5.png?alt=media&amp;token=e626abdd-8c9f-4916-895c-8fce768a6f81" alt=""><figcaption></figcaption></figure>

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

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

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

<figure><img src="https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2FWbu6E3cRJeMiBbe5gxCO%2F%7B6A373ED1-F0DB-426F-8001-844D04EE8DC9%7D.png?alt=media&amp;token=d297585b-905f-4998-a59b-bf813a0d46bc" alt=""><figcaption></figcaption></figure>

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

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

<figure><img src="https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2FYSuwuTQWPxIWlyDXYdFw%2F%7BA6290B84-141B-4CF1-909A-F89F010C7261%7D.png?alt=media&amp;token=aa80a2fa-6b01-49c1-bc71-b5d342b6fcc5" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
