This should be sufficient to delete a submodule git submodule deinit <path_to_submodule> git rm <path_to_submodule> git commit-m "Removed submodule " rm -rf .git/modules/<path_to_submodule>