# DROP

- [DROP DATABASE](https://mariadb.com/docs/server/reference/sql-statements/data-definition/drop/drop-database.md): Complete guide to removing databases in MariaDB. Complete DROP DATABASE syntax with IF EXISTS, permissions, and recovery options for production use.
- [DROP EVENT](https://mariadb.com/docs/server/reference/sql-statements/data-definition/drop/drop-event.md): Remove a scheduled event from the server. This command stops the event from executing and deletes its definition from the system tables.
- [DROP INDEX](https://mariadb.com/docs/server/reference/sql-statements/data-definition/drop/drop-index.md): Remove an existing index from a table. This command deletes the index structure, potentially impacting query performance but freeing storage.
- [DROP LOGFILE GROUP](https://mariadb.com/docs/server/reference/sql-statements/data-definition/drop/drop-logfile-group.md): Remove a log file group. This statement, primarily for NDB Cluster, deletes the undo log files associated with the specified log file group.
- [DROP PACKAGE BODY](https://mariadb.com/docs/server/reference/sql-statements/data-definition/drop/drop-package-body.md): Delete the body of a stored package. This command removes the implementation logic while preserving the package specification and interface.
- [DROP PACKAGE](https://mariadb.com/docs/server/reference/sql-statements/data-definition/drop/drop-package.md): Remove a stored package completely. This command deletes both the package specification (interface) and its body (implementation) from the database.
- [DROP SERVER](https://mariadb.com/docs/server/reference/sql-statements/data-definition/drop/drop-server.md): Remove a server definition. This command deletes the connection details for a remote server used by the FEDERATED or SPIDER storage engines.
- [DROP TABLESPACE](https://mariadb.com/docs/server/reference/sql-statements/data-definition/drop/drop-tablespace.md): Delete a tablespace. This command removes the physical file container used for storing table data, applicable to engines like InnoDB or NDB.
- [DROP TRIGGER](https://mariadb.com/docs/server/reference/sql-statements/data-definition/drop/drop-trigger.md): Remove a trigger from a table. This command deletes the trigger definition, preventing it from firing on future INSERT, UPDATE, or DELETE events.


---

# 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.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.
