Remove an index that is unused or harmful.
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