<div dir="ltr">Dear all,<div><br></div><div>I am writing a PyQT5 QGIS Plugin to wipe out all xyz connections available in QGS projects.</div><div><br></div><div>I wrote the code below, but I am not achieving my goal and I did not understand the structure of xyz connections.</div><div><br></div><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:24px;line-height:32px;white-space:pre"><div><span style="color:rgb(86,156,214)">def</span> <span style="color:rgb(220,220,170)">removeAllConnectionsXYZ</span>(<span style="color:rgb(156,220,254)">self</span>):</div><div>        s = QSettings()</div><div>        xyz = <span style="color:rgb(206,145,120)">'qgis/connections-xyz'</span></div><div>        groupsXYZ = s.childGroups()</div><br><div>        <span style="color:rgb(197,134,192)">for</span> group <span style="color:rgb(86,156,214)">in</span> groupsXYZ:</div><div>            s.beginGroup(xyz)</div><div>            s.remove(<span style="color:rgb(206,145,120)">""</span>)</div><div>            s.endGroup()</div><div><div style="line-height:32px"><div><span style="color:rgb(86,156,214)">self</span>.dlg.wipeAllConnectionsXyz.clicked.connect(</div><div>                <span style="color:rgb(86,156,214)">self</span>.removeAllConnectionsXYZ)</div><div><br></div><div><br></div><div><br></div><div><br></div><div># Any comment will be very appreciated.</div><div><br></div><div>#Thank you for your time in advance</div><div><br></div><div>#Julierme</div></div></div></div></div></div>