Remove unused repositories
Recurse into submodules where necessary