I am running a script that has many Features added. Up until now the script would run and then end and be done but I am adding a WHILE loop that reruns the script.
In this script there are a bunch of Feature Layers that get created like below.
At the end of the Script before it runs again I want to DELETE all of the FeatureLayers that were created in memory... Is there a call that will do the delete.
target_lyr = arcpy.MakeFeatureLayer_management(os.path.join(db['Path'], layer), layer+'_exclude')