Cleaning directory entry selector.