I'm using the process outlined here: FeatureSharingDraft—Sharing module | ArcGIS Desktop and am getting an error that the layer already exists. ExecuteError: ERROR 001398: Service name 'WolfTelemetryDataOnline' already exists.
Failed to execute (UploadServiceDefinition).
I've tried adding in this parameter, but it still fails: arcpy.env.overwrite_existing_service = True
Is there a way to overwrite a hosted feature service from arcpy, or should I stick to using the Python API for this using sdItem.publish(overwrite = True)?