Delete unneeded submodules