removes unneeded path entry.
removes unneeded files.