<html>
<body>
Dear All,<br><br>
i have a problem with QgsMapLayerRegistry class when i try to remove a
Layer from QGis.<br><br>
i use this two code line:<br>
<font face="Courier New, Courier">&nbsp;&nbsp;&nbsp;&nbsp; RegIns =
QgsMapLayerRegistry.instance()<br>
&nbsp;&nbsp;&nbsp;&nbsp; RegIns.removeMapLayer(layerName)<br><br>
</font>where layerName is set with this command line:
<font face="Courier New, Courier">layerName =
<i>self</i>.iface.activeLayer().name()<br><br>
</font>Do someone know how to solve it?<br><br>
Thank you Michele.<br>
</body>
</html>