So, yeah, I was talking about the situation where an index contains entities that became unmanaged after a refactoring. Of course, you can always manually delete file from the filesystem, but I was looking for a programmatic way.