ravendbravendb-studio

Reset all corrupted indexes of all databases on a RavenDb server by script


I have a RavenDb server with over 200 databases each with 5 - 10 indexes. Recently, the server went very low on disk space, and most of the indexes become corrupted due to this and need to be reset.

Is it possible to reset all indexes which are corrupted, for all databases on a server?

Or maybe just resetting all indexes on all databases for a server, irrespective if they are corrupt or not?


Solution

  • You have at least 2 options:

    Note: Please remember about paging

    REST Docs: