[GIS] Removing definition query in ArcPy

arcpydefinition-query

I have created one script which set a defination query at certain location in script.
I use lyr.definitionquery = "some expression"

After running the script i want to remove the definition query . But not getting any hint to do it.

Best Answer

Just clear that property:

lyr.definitionQuery = None

None is the python for NULL, so making it = None will clear the query.

Related Question