Removes unneeded files.