I want to remove all layers from a distinct group.
root = QgsProject.instance().layerTreeRoot()
the_group = root.findGroup("my_group")
parentGroup = the_group.parent()
I think I have to loop the elements of the group and remove them
for i in parentGroup.children():
...
And then calling the removeMapLayer()
method within the loop.
But I can't put these things together.