[QGIS-Developer] Remove layer variable
Simon Gröchenig
gis at sgroe.at
Mon Jun 2 01:46:07 PDT 2025
Hi,
how can I remove a layer variable with Python?
The following returns true, but does not work.
QgsExpressionContextUtils.layerScope(layer).removeVariable("variable_name")
Best regards
Simon
_____________________
Simon Gröchenig
GIS Support und Training
Treffling 73 - 9871 Seeboden - Österreich
Tel.: +43 699 11 22 31 22
Web: https://www.sgroe.at
E-Mail: gis at sgroe.at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20250602/0d114e5f/attachment.htm>
More information about the QGIS-Developer
mailing list