Remove unneeded files and directories.