I'm using ArcGIS Pro 2.0.1. I have migrated some arcpy scripts from ArcMap that we use for buffering and clipping right-of-ways generated from line features. The script works successfully except for when I attempt to delete layers at the end. It gives me "error 496: table is being edited". I thought ArcGIS Pro doesn't have edit sessions so I don't know how to deal with this? This script never gave me problems in ArcMap even when an edit session was open. Any thoughts on how to deal with this? I assume ArcGIS Pro is creating a lock somewhere where ArcMap would not.