1

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

groupName="machin"

root = QgsProject.instance().layerTreeRoot()

group = root.addGroup(groupName)
2

1 Answer 1

4

You can use this

root.removeChildNode(group)

Not the answer you're looking for? Browse other questions tagged or ask your own question.