Search code examples
cyphermemgraphdbopencypher

How can I drop all indexes at once using Cypher in Memgraph?


Is there a way to do something like DROP INDEX ON * that would delete all indexes?

If I have a larger number of indexes it can take some time to delete them one by one. Is there some query that can loop through exiting indexes and delete them?


Solution

  • You can't do this by simply using Cypher at the moment. There is a GitHub issue in the Memgraph repository for this feature.