To remove a Git submodule:
Delete the submodule entry in .gitmodules and .git/config. Run git rm --cached path_to_submodule. Delete the submodule folder manually. Commit the changes. git submodule rm isn’t a valid command; the process requires manual steps.