Skip to main content
Post Closed as "Duplicate" by underdark
improved formatting
Source Link
Fran Raga
  • 7.9k
  • 3
  • 26
  • 48

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

groupName="machin"

root = QgsProject.instance().layerTreeRoot()

group = root.addGroup(groupName)

groupName="machin"

root = QgsProject.instance().layerTreeRoot()

group = root.addGroup(groupName)

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

groupName="machin"

root = QgsProject.instance().layerTreeRoot()

group = root.addGroup(groupName)

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

groupName="machin"

root = QgsProject.instance().layerTreeRoot()

group = root.addGroup(groupName)
Source Link
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)