delete unneeded modules