omg, got it: QgsMapLayerRegistry.instance().removeMapLayer(clipLayer.id*()*) walter 2 1/2 days for one statement :( -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Get-layer-id-by-layer-not-by-acive-layer-tp5167152p5167248.html Sent from the Quantum GIS - User mailing list archive at Nabble.com.