<?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 items -- JS api in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deleting-items-js-api/m-p/259869#M24054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to get it to work after all. It turns out that I had to pass the token in the content attribute for the request, not as part of the url.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Nov 2014 23:07:16 GMT</pubDate>
    <dc:creator>StevenKitterman1</dc:creator>
    <dc:date>2014-11-06T23:07:16Z</dc:date>
    <item>
      <title>Deleting items -- JS api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deleting-items-js-api/m-p/259867#M24052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using the esri/request module. I can get items just fine, but I'm not able to delete items as I should be able to. &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using the url format shown in the ArcGIS REST API, like so: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/sharing/rest/content/users/username/items/itemid/delete" rel="nofollow" target="_blank"&gt;http://www.arcgis.com/sharing/rest/content/users/username/items/itemid/delete&lt;/A&gt;&lt;SPAN&gt; ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but the error I am getting is "invalid token &amp;lt;". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then tried putting a "?f=json" on the end of the url, just to find out more. This time, the error I got back was "405 method not allowed". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to delete content using the esri.request module? I am authenticated with OAuth 2.0 and the esri/identityManager, so that shouldn't be a problem (and I can see my private items using the get request with the esri/request module).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 22:44:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deleting-items-js-api/m-p/259867#M24052</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-10-31T22:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting items -- JS api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deleting-items-js-api/m-p/259868#M24053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sending the JSON data via a POST request?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All other HTTP methods should result in the 405 error. See this page in the &lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#//02r3000000w4000000" title="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#//02r3000000w4000000"&gt;ArcGIS REST API&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2014 20:47:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deleting-items-js-api/m-p/259868#M24053</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2014-11-02T20:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting items -- JS api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deleting-items-js-api/m-p/259869#M24054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to get it to work after all. It turns out that I had to pass the token in the content attribute for the request, not as part of the url.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 23:07:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deleting-items-js-api/m-p/259869#M24054</guid>
      <dc:creator>StevenKitterman1</dc:creator>
      <dc:date>2014-11-06T23:07:16Z</dc:date>
    </item>
  </channel>
</rss>

