removing redundant files and directories