I am using the arcpy.Delete_management() function to delete a feature class in an SDE environment, but this tool keeps creating a layer with the same name except with "_H" at the end. Does anyone know of a workaround for this?
My guess, archiving is enabled on these features classes. I don't work with archiving much, but I believe when someone deletes a feature class that is archived, the archive of the feature classes gets promoted to a full-fledged feature class with the "_H" suffix.
Winner, winner, chicken dinner! Thanks man! Yeah that's exactly what happens. When I disable archiving before the delete method is run, the issue is resolved.
Do you have an workspace environment set (arcpy.env.workspace)?
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.