I would like to remove the official repository from several QGIS installations.
Removing the Repository from the Settings works so far with:
from qgis.PyQt.QtCore import QSettings
settings=QSettings()
test=settings.allKeys()
for i in test:
if u'Qgis/plugin-repos/' in i:
if u'/url' in i:
if settings.value(i)==u'https://plugins.qgis.org/plugins/plugins.xml':
repo_key = i.rsplit('/', 1)[0]
settings.setValue(i,'')
settings.remove(repo_key);
but as soon as QGIS is started the next time the repository is added to the settings again.
How can I remove it permanently?