Delete references to submodules.