just got over the same issue yesterday, after having deleted by hand the entry in .gitmodules (e.g. nano .gitmodules), I had to go with
git rm --cached
which returned a message
rm ''
then I needed a
git commit -m "delete cached modules"
and validated the submodule deletion.