<?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 Strange WS to delete archived node in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/strange-ws-to-delete-archived-node/m-p/311881#M265011</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to this documentation &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/5.0/references/RESTful-ArchiveArchivednodesDelete.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/5.0/references/RESTful-ArchiveArchivednodesDelete.html&lt;/A&gt;&lt;SPAN&gt; the following webscript call should delete the node from the archive (purge). However I can use it against node which are not archived. I can actually use it as a webscript to simply delete nodes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;curl -uadmin:admin -X "DELETE" &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/s/api/archive/workspace/SpacesStore/1fc9bb4e-d587-4260-8a12-3b5c14a947fa" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/s/api/archive/workspace/SpacesStore/1fc9bb4e-d587-4260-8a12-3b5c14a947fa&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I find it really strange, does anybody have any thought on it? Do you think I can use it to delete nodes? Maybe not recommended? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To delete node should I use instead (or should I create one, which is not really complex?):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;curl -uadmin:admin -X "DELETE" &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/s/slingshot/doclib/action/file/node/workspace/SpacesStore/1bc448ca-e4e4-4f65-9dbf-de4f1f16ca1c" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/s/slingshot/doclib/action/file/node/workspace/SpacesStore/1bc448ca-e4e4-4f65-9dbf-de4f1f16ca1c&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2015 13:44:10 GMT</pubDate>
    <dc:creator>sammasue</dc:creator>
    <dc:date>2015-05-12T13:44:10Z</dc:date>
    <item>
      <title>Strange WS to delete archived node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/strange-ws-to-delete-archived-node/m-p/311881#M265011</link>
      <description>Hello,According to this documentation http://docs.alfresco.com/5.0/references/RESTful-ArchiveArchivednodesDelete.html the following webscript call should delete the node from the archive (purge). However I can use it against node which are not archived. I can actually use it as a webscript to simply</description>
      <pubDate>Tue, 12 May 2015 13:44:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/strange-ws-to-delete-archived-node/m-p/311881#M265011</guid>
      <dc:creator>sammasue</dc:creator>
      <dc:date>2015-05-12T13:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Strange WS to delete archived node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/strange-ws-to-delete-archived-node/m-p/311882#M265012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The service endpoint is defined as -&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;DELETE /alfresco/service/api/archive/{store_type}/{store_id}/{id}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So when trying to deleting from archive space&amp;nbsp; your {store_type} would be archive, {store_id} would be SpacesStore and {id} would be node_id to be deleted&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eg. to delete a node in archive space with node id 8fd584b9-3148-4b13-92ab-70d70f3c584b the curl command would be -&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;curl -u admin:admin -X "DELETE" &lt;A href="http://localhost:8080/alfresco/service/api/archive/archive/SpacesStore/8fd584b9-3148-4b13-92ab-70d70f3c584b" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/api/archive/archive/SpacesStore/8fd584b9-3148-4b13-92ab-70d70f3c584b&lt;/A&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which would give a response as below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "data":&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "purgedNodes":&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "nodeRef": "Node no longer exists: archive://SpacesStore/8fd584b9-3148-4b13-92ab-70d70f3c584b"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 14:11:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/strange-ws-to-delete-archived-node/m-p/311882#M265012</guid>
      <dc:creator>sujaypillai</dc:creator>
      <dc:date>2015-05-12T14:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Strange WS to delete archived node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/strange-ws-to-delete-archived-node/m-p/311883#M265013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well I have not tried this, however I was looking more for an "out of the box" webscript to delete nodes (un-archived nodes). And I found strange that this one (alfresco/service/api/archive) was able to do the job. It's actually moves nodes from workspace to archive.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 14:37:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/strange-ws-to-delete-archived-node/m-p/311883#M265013</guid>
      <dc:creator>sammasue</dc:creator>
      <dc:date>2015-05-12T14:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Strange WS to delete archived node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/strange-ws-to-delete-archived-node/m-p/311884#M265014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You set the store type to 'archive'. So it attempts to delete from the archive://SpacesStore&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To delete from the active workspace you can use 'workspace' instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;"/alfresco/s/api/archive/workspace/SpacesStore/" + nodeId&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 15:36:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/strange-ws-to-delete-archived-node/m-p/311884#M265014</guid>
      <dc:creator>marsbard</dc:creator>
      <dc:date>2016-06-14T15:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Strange WS to delete archived node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/strange-ws-to-delete-archived-node/m-p/311885#M265015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have taken the time to test and debug these since we need to implement a purging mechanic at the company where I work. I'm pretty sure this is meant to be an archive purge service, but can also currently be used to delete&amp;nbsp;a single workspace node. I have included the GET statement since you might need it&amp;nbsp;to read archives before deleting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the official documentation.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://docs.alfresco.com/community5.0/references/RESTful-ArchiveArchivednodesGet.html" title="http://docs.alfresco.com/community5.0/references/RESTful-ArchiveArchivednodesGet.html" rel="nofollow noopener noreferrer"&gt;GET archived (deleted) items | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://docs.alfresco.com/community5.0/references/RESTful-ArchiveArchivednodesDelete.html" title="http://docs.alfresco.com/community5.0/references/RESTful-ArchiveArchivednodesDelete.html" rel="nofollow noopener noreferrer"&gt;DELETE permanently (purge) a node or nodes from the archive | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one caveat to watch out for in this service. For both the GET and DELETE options, you need to specify "workspace" as the store_id when fetching and deleting multiple node, however you must specify "archive" when deleting a single node. In other words, when you specify the noderef, you must use the archive store_id, but when you don't specify a noderef, you must specify the original store_id where the undeleted document was stored. In this case, the code has a&amp;nbsp;map function&amp;nbsp;that obtains the archive store from the workspace store, which is not called&amp;nbsp;when the noderef is specified. This is very misleading and was probably not the original intent, but I don't see them fixing this issue without deprecating this service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET:&lt;/P&gt;&lt;P&gt;Obtain one page of deleted documents (store_id = &lt;SPAN&gt;workspace&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #58595b; background-color: #ffffff;"&gt;/alfresco/service/api/archive/{store_type}/{store_id}?maxItems={maxItems?}&amp;amp;skipCount={skipCount?}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For example, to fetech the first&amp;nbsp;page of 100 documents:&lt;/P&gt;&lt;P&gt;/alfresco/service/api/archive/workspace/SpacesStore?maxItems=100&amp;amp;skipCount=0&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DELETE&lt;/P&gt;&lt;P&gt;Purge one page of archived (deleted) documents (one page by default is 1000 - &lt;SPAN&gt;store_id = workspace&lt;/SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #58595b; background-color: #ffffff;"&gt;/alfresco/service/api/archive/{store_type}/{store_id}&lt;/SPAN&gt;&lt;BR /&gt;For example,&lt;/P&gt;&lt;P&gt;/alfresco/service/api/archive/workspace/SpacesStore&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Purge one archived (deleted) document &lt;SPAN&gt; (store_id = archive)&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #58595b; background-color: #ffffff;"&gt;/alfresco/service/api/archive/{store_type}/{store_id}/{id}&lt;/SPAN&gt;&lt;BR /&gt;For example, to delete node&amp;nbsp;&lt;SPAN&gt;cb59255e-d58f-4691-a299-65326a426e73:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/alfresco/service/api/archive/archive/SpacesStore/cb59255e-d58f-4691-a299-65326a426e73&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hoping this helps someone out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 12:42:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/strange-ws-to-delete-archived-node/m-p/311885#M265015</guid>
      <dc:creator>prusik666</dc:creator>
      <dc:date>2017-03-30T12:42:41Z</dc:date>
    </item>
  </channel>
</rss>

