Removing a Git submodule
To remove a Git submodule go through these annoying steps:
git submodule deinit -f path/to/modulerm -rf .git/modules/path/to/modulegit config -f .gitmodules --remove-section submodule.path/to/modulegit add .gitmodulesgit rm --cached path/to/module
Harsh Shandilya