https://softonit.ru/blog/articles/it/remove-submodule-git/
Работа с submodule (подмодулями) в GIT добавление/удаление