# DROP EVENT

## Syntax

```sql
DROP EVENT [IF EXISTS] event_name
```

## Description

This statement drops the [event](/docs/server/server-usage/triggers-events/event-scheduler/events.md) named `event_name`. The event immediately ceases being active, and is deleted completely from the server.

If the event does not exist, the error`ERROR 1517 (HY000): Unknown event 'event_name'` results. You can override this and cause the statement to generate a `NOTE` for non-existent events instead by using`IF EXISTS`. See [SHOW WARNINGS](/docs/server/reference/sql-statements/administrative-sql-statements/show/show-warnings.md).

This statement requires the [EVENT](https://github.com/mariadb-corporation/mariadb-docs/blob/main/server/reference/sql-statements/account-management-sql-commands/grant.md#database-privileges) privilege.

## Examples

```sql
DROP EVENT myevent3;
```

Using the IF EXISTS clause:

```sql
DROP EVENT IF EXISTS myevent3;
Query OK, 0 rows affected, 1 warning (0.01 sec)

SHOW WARNINGS;
+-------+------+-------------------------------+
| Level | Code | Message                       |
+-------+------+-------------------------------+
| Note  | 1305 | Event myevent3 does not exist |
+-------+------+-------------------------------+
```

## See also

* [Events Overview](/docs/server/server-usage/triggers-events/event-scheduler/events.md)
* [CREATE EVENT](/docs/server/reference/sql-statements/data-definition/create/create-event.md)
* [SHOW CREATE EVENT](/docs/server/reference/sql-statements/administrative-sql-statements/show/show-create-event.md)
* [ALTER EVENT](/docs/server/server-usage/triggers-events/event-scheduler/alter-event.md)

<sub>*This page is licensed: GPLv2, originally from*</sub> [<sub>*fill\_help\_tables.sql*</sub>](https://github.com/MariaDB/server/blob/main/scripts/fill_help_tables.sql)

{% @marketo/form formId="4316" %}


---

# Agent Instructions: 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:

```
GET https://mariadb.com/docs/server/reference/sql-statements/data-definition/drop/drop-event.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
