Section: indexes

Drop an index

sql
sql
DROP INDEX idx_orders_created_at ON orders;
Explanation

Dropping unused indexes can reduce write amplification and storage cost.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing indexes
Create a simple index
Add an index for a frequently filtered column.
OpenIn sheetsqlsame section
Create a composite index
Index multiple columns in left-to-right order.
OpenIn sheetsqlsame section
Inspect indexes on a table
Display index metadata for a table.
OpenIn sheetsqlsame section
Explain a SELECT query
View the optimizer's execution plan.
Run EXPLAIN ANALYZE
Execute the query and include actual timing information.
Refresh table statistics
Update optimizer statistics for a table.