<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to list layers in memory in python idle in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-list-layers-in-memory-in-python-idle/m-p/423050#M33247</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johannes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for trying to help I checked those before, the difference is I am not working in a mxd document and&amp;nbsp; arcpy. mapping.ListLayers would not help, the thing is when I use&amp;nbsp; arcpy.MakeFeatureLayer_management tool, it will create layer without requiring the user to have any mxd and it will be created in memory, only solution seems like&amp;nbsp; just pick names of layers from code and use arcpy.Delete_management to erase them piece by piece. If you have another idea I would greatly appreciate that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Nov 2014 14:24:32 GMT</pubDate>
    <dc:creator>NaimeCelik</dc:creator>
    <dc:date>2014-11-14T14:24:32Z</dc:date>
    <item>
      <title>How to list layers in memory in python idle</title>
      <link>https://community.esri.com/t5/python-questions/how-to-list-layers-in-memory-in-python-idle/m-p/423047#M33244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am creating layers from shp file during my process on my python code.Using makefeaturelayer&amp;nbsp; tool puts lock file to the shp file and, if I do not delete that layer inside the code, I cannot erase that shp file due to lock.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is is there any way to extract names of created layers, so that I can erase them and prevent my shps having a lock file ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 09:35:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-list-layers-in-memory-in-python-idle/m-p/423047#M33244</guid>
      <dc:creator>NaimeCelik</dc:creator>
      <dc:date>2014-11-14T09:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to list layers in memory in python idle</title>
      <link>https://community.esri.com/t5/python-questions/how-to-list-layers-in-memory-in-python-idle/m-p/423048#M33245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this could help you?&lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.stackexchange.com/questions/6148/remove-feature-layer-using-arcpy-script" title="http://gis.stackexchange.com/questions/6148/remove-feature-layer-using-arcpy-script"&gt;arcgis desktop - Remove feature layer using ArcPy script? - Geographic Information Systems Stack Exchange&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 10:58:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-list-layers-in-memory-in-python-idle/m-p/423048#M33245</guid>
      <dc:creator>JohannesBierer</dc:creator>
      <dc:date>2014-11-14T10:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to list layers in memory in python idle</title>
      <link>https://community.esri.com/t5/python-questions/how-to-list-layers-in-memory-in-python-idle/m-p/423049#M33246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/90555"&gt;Cleaning up temporary layers created by python toolbox script&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 11:02:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-list-layers-in-memory-in-python-idle/m-p/423049#M33246</guid>
      <dc:creator>JohannesBierer</dc:creator>
      <dc:date>2014-11-14T11:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to list layers in memory in python idle</title>
      <link>https://community.esri.com/t5/python-questions/how-to-list-layers-in-memory-in-python-idle/m-p/423050#M33247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johannes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for trying to help I checked those before, the difference is I am not working in a mxd document and&amp;nbsp; arcpy. mapping.ListLayers would not help, the thing is when I use&amp;nbsp; arcpy.MakeFeatureLayer_management tool, it will create layer without requiring the user to have any mxd and it will be created in memory, only solution seems like&amp;nbsp; just pick names of layers from code and use arcpy.Delete_management to erase them piece by piece. If you have another idea I would greatly appreciate that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 14:24:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-list-layers-in-memory-in-python-idle/m-p/423050#M33247</guid>
      <dc:creator>NaimeCelik</dc:creator>
      <dc:date>2014-11-14T14:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to list layers in memory in python idle</title>
      <link>https://community.esri.com/t5/python-questions/how-to-list-layers-in-memory-in-python-idle/m-p/423051#M33248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I, too, would be interested if there was a way to see all of the layers and table views created with arcpy outside of ArcMap, but I haven't found a way yet.&amp;nbsp; Obviously within ArcObjects it is being done, but it doesn't seem to be exposed through arcpy.&amp;nbsp; I guess the logic is that if you are creating them in your code then you should have an idea what you have created and can delete them as well, i.e., track it yourself.&amp;nbsp; I wouldn't mind being wrong on this one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 16:02:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-list-layers-in-memory-in-python-idle/m-p/423051#M33248</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2014-11-14T16:02:08Z</dc:date>
    </item>
  </channel>
</rss>

