delete unneeded sources