The current in-memory index becomes stale after prune or repair index have run. Thus, just drop the in-memory index altogether once these commands have finished.
The operation will always fail with an error if an index cannot be deleted. Thus, this change is purely cosmetic.