how can I delete the memory-workspace after a script has run?
I usually added
to the end of my scripts, but noticed yesterday that this apparently doesn't do anything.
The workaround i found is to loop over all fc in the workspace and delete them one by one.
for fc in arcpy.ListFeatureClasses():
desc = arcpy.Describe(fc)
But this help site indicates it should be possible to delete all at once.
Also, the older in_memory seems to empty itself after a script ran, why doesn't memory do the same?
edit: I am using ArcGIS Pro 2.4.3