Skip to main content
1 of 2
Namoat
  • 307
  • 1
  • 9

Removing a group from layers panel using PyQGIS?

How can I remove a group that I created previously using :

groupName="machin"

root = QgsProject.instance().layerTreeRoot()

group = root.addGroup(groupName)

Namoat
  • 307
  • 1
  • 9