<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi,</p>
<p>how can I remove a layer variable with Python?</p>
<p>The following returns true, but does not work.</p>
<p>QgsExpressionContextUtils.layerScope(layer).removeVariable("variable_name")</p>
<div>Best regards</div>
<div>Simon</div>
<div id="signature"><br />
<div style="color: #000000; font-family: sans-serif; background-color: #ffffff;"><span style="font-size: small;">_____________________</span></div>
<div style="color: #000000; font-family: sans-serif; background-color: #ffffff;"><span style="font-size: small;">Simon Gröchenig</span></div>
<div style="color: #000000; font-family: sans-serif; background-color: #ffffff;"><span style="color: #7e8c8d; font-size: small;">GIS Support und Training</span></div>
<div style="color: #000000; font-family: sans-serif; background-color: #ffffff;"><span style="color: #7e8c8d; font-size: small;">Treffling 73 - 9871 Seeboden - Österreich</span></div>
<div style="color: #000000; font-family: sans-serif; background-color: #ffffff;"><span style="color: #7e8c8d; font-size: small;">Tel.: +43 699 11 22 31 22</span></div>
<div style="color: #000000; font-family: sans-serif; background-color: #ffffff;"><span style="color: #7e8c8d; font-size: small;">Web: <a style="color: #7e8c8d;" href="https://www.sgroe.at">https://www.sgroe.at</a> </span></div>
<div style="color: #000000; font-family: sans-serif; background-color: #ffffff;"><span style="color: #7e8c8d; font-size: small;">E-Mail: <a href="mailto:gis@sgroe.at"><span style="color: #7e8c8d;">gis@sgroe.at</span></a></span><span style="color: #7e8c8d; font-size: small;"> </span></div>
</div>
</body></html>