delete the unneeded files