DROP INDEX
removes an index; CREATE/ALTER REBUILD sorts and writes all rows of the key
What changes
- Input
- table or view columns (key, included, filter predicate)
- Output or change
- index structure (B-tree, columnstore, XML, spatial, JSON, vector, full-text)
Syntax at a glance
DROP INDEX [ IF EXISTS ] { <drop_relational_or_xml_or_spatial_index> [ , ...n ] | <drop_backward_compatible_index> [ , ...n ] }
Work example
An index is considered redundant after query and write evidence shows no need for it.
Review usage, constraints, plans, foreign keys, and duplicate indexes before removing the exact index.
Check your work The target query remains within its plan limit and all key constraints stay enforced.
Open Microsoft Learn for full syntax, permissions, and details for your version.