Option 1. Remove .gitmodules file from project Option 2. rm -rf .git/modules/path_to_submodule Remember to commit the remove change!