<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Deleting a service definition in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/deleting-a-service-definition/m-p/273355#M13368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kelly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a python script that takes an MXD and creates a service definition from it.&amp;nbsp;Then using arcpy.UploadServiceDefinition_server, it is supposed to overwrite the service definition on our ArcGIS Online site. &amp;nbsp;The script runs on our server that has ArcGIS 10.4. &amp;nbsp;I have looked and haven't had any success in finding a way to have my python script delete the current service definition and hosted feature service in our content. &amp;nbsp;I had read that this was a more efficient way of updating rather than relying on the overwrite. &amp;nbsp;I currently do not have anything in my script to do this --- so no errors. &amp;nbsp;Is there a way to delete what is currently sitting in our AGOL before the script runs&amp;nbsp;this.....???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.UploadServiceDefinition_server(UploadSD, My_Hosted_Services, "", "", "FROM_SERVICE_DEFINITION", "", "STARTED", "OVERRIDE_DEFINITION", "SHARE_ONLINE", "PUBLIC", "SHARE_ORGANIZATION","")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Cindy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Sep 2016 19:11:32 GMT</pubDate>
    <dc:creator>CynthiaKozma</dc:creator>
    <dc:date>2016-09-26T19:11:32Z</dc:date>
    <item>
      <title>Deleting a service definition</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/deleting-a-service-definition/m-p/273353#M13366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am writing a python script that will update a service definition in ArcGIS Online - to synchronize changes made by Desktop users. &amp;nbsp;One question/answer that I found suggested '&lt;SPAN style="color: #242729; background-color: rgba(248, 248, 248, 0.6);"&gt;deleting a service before publishing a replacement service, rather than overwriting'. &amp;nbsp;I can't seem to find the right syntax to delete the old&amp;nbsp;service definition. &amp;nbsp;I'm assuming it uses ArcRest, but I can't seem to figure out how to code this. &amp;nbsp;Any help would be appreciated. &amp;nbsp;I am new to using ArcRest. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 21:47:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/deleting-a-service-definition/m-p/273353#M13366</guid>
      <dc:creator>CynthiaKozma</dc:creator>
      <dc:date>2016-09-16T21:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a service definition</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/deleting-a-service-definition/m-p/273354#M13367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you trying to delete the Service Definition or the Hosted Feature Service? Can you share the error message that you are receiving?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 17:21:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/deleting-a-service-definition/m-p/273354#M13367</guid>
      <dc:creator>KellyGerrow</dc:creator>
      <dc:date>2016-09-26T17:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a service definition</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/deleting-a-service-definition/m-p/273355#M13368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kelly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a python script that takes an MXD and creates a service definition from it.&amp;nbsp;Then using arcpy.UploadServiceDefinition_server, it is supposed to overwrite the service definition on our ArcGIS Online site. &amp;nbsp;The script runs on our server that has ArcGIS 10.4. &amp;nbsp;I have looked and haven't had any success in finding a way to have my python script delete the current service definition and hosted feature service in our content. &amp;nbsp;I had read that this was a more efficient way of updating rather than relying on the overwrite. &amp;nbsp;I currently do not have anything in my script to do this --- so no errors. &amp;nbsp;Is there a way to delete what is currently sitting in our AGOL before the script runs&amp;nbsp;this.....???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.UploadServiceDefinition_server(UploadSD, My_Hosted_Services, "", "", "FROM_SERVICE_DEFINITION", "", "STARTED", "OVERRIDE_DEFINITION", "SHARE_ONLINE", "PUBLIC", "SHARE_ORGANIZATION","")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Cindy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 19:11:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/deleting-a-service-definition/m-p/273355#M13368</guid>
      <dc:creator>CynthiaKozma</dc:creator>
      <dc:date>2016-09-26T19:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a service definition</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/deleting-a-service-definition/m-p/273356#M13369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/community/developers/gis-developers/python?sr=search&amp;amp;searchId=b89e6e8c-c0aa-4234-9d6f-48af371c74a3&amp;amp;searchIndex=3"&gt;https://community.esri.com/community/developers/gis-developers/python?sr=search&amp;amp;searchId=b89e6e8c-c0aa-4234-9d6f-48af371c74a3&amp;amp;searchIndex=3&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 16:13:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/deleting-a-service-definition/m-p/273356#M13369</guid>
      <dc:creator>KellyGerrow</dc:creator>
      <dc:date>2016-09-27T16:13:20Z</dc:date>
    </item>
  </channel>
</rss>

