AnsweredAssumed Answered

How to delete an sde file with  Python

Question asked by jsn on Feb 25, 2020
Latest reply on Feb 25, 2020 by jsn

Hello everyone,


How can I delete an sde file located in my scratch space.



prefixOutputWorkspace = r"C:\scratch\....\ConnectionToSQL.sde"

if arcpy.Exists(prefixOutputWorkspace):
          delete this sde conection

Recreate sde connection