refactoring by removing '-e' options to remove keys forcefully