<?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 Node in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/deleting-a-node/m-p/276950#M230080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Well , removeChild isnt implemented in the Alfresco Library right now, i would suggest you to do it via REST – Alfresco Share uses the WebScript:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;A href="http://localhost:8080/alfresco/service/slingshot/doclib/action/file/node/{$nodeRef" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/slingshot/doclib/action/file/node/{$nodeRef&lt;/A&gt;}&lt;BR /&gt;&lt;BR /&gt;nodeRef should be like = "workspace/SpacesStore/XXXXXXXXXXX"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;Just send a "DELETE" Method on the HTTP Request to this URL and it should be fine.&lt;BR /&gt;&lt;BR /&gt;If you have now Idea how to speak to a REST Webservice in PHP , there are many good tutorials out there …. for example -&amp;gt; &lt;A href="http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/" rel="nofollow noopener noreferrer"&gt;http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;its an good implementation of the RESTClient Class, which can be really useful&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Such a very amazing link!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Apr 2011 09:39:40 GMT</pubDate>
    <dc:creator>ligiahag7902</dc:creator>
    <dc:date>2011-04-07T09:39:40Z</dc:date>
    <item>
      <title>Deleting a Node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deleting-a-node/m-p/276946#M230076</link>
      <description>I have found no (documented) way that you can delete a node using the PHP library. However, my intuition tells me that the absence of such a basic function would be bizarre. Does anyone know how to delete a node (or document, or file, or whatever) in PHP?</description>
      <pubDate>Thu, 24 Mar 2011 21:25:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deleting-a-node/m-p/276946#M230076</guid>
      <dc:creator>dallinns</dc:creator>
      <dc:date>2011-03-24T21:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a Node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deleting-a-node/m-p/276947#M230077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well , removeChild isnt implemented in the Alfresco Library right now, i would suggest you to do it via REST – Alfresco Share uses the WebScript:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;A href="http://localhost:8080/alfresco/service/slingshot/doclib/action/file/node/{$nodeRef" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/slingshot/doclib/action/file/node/{$nodeRef&lt;/A&gt;}&lt;BR /&gt;&lt;BR /&gt;nodeRef should be like = "workspace/SpacesStore/XXXXXXXXXXX"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Just send a "DELETE" Method on the HTTP Request to this URL and it should be fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have now Idea how to speak to a REST Webservice in PHP , there are many good tutorials out there …. for example -&amp;gt; &lt;/SPAN&gt;&lt;A href="http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/" rel="nofollow noopener noreferrer"&gt;http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;its an good implementation of the RESTClient Class, which can be really useful&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 12:39:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deleting-a-node/m-p/276947#M230077</guid>
      <dc:creator>ddanninger</dc:creator>
      <dc:date>2011-03-28T12:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a Node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deleting-a-node/m-p/276948#M230078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a list of all the services/web scripts (or whatever) that are used by Alfresco Share?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 20:44:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deleting-a-node/m-p/276948#M230078</guid>
      <dc:creator>dallinns</dc:creator>
      <dc:date>2011-03-29T20:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a Node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deleting-a-node/m-p/276949#M230079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there a list of all the services/web scripts (or whatever) that are used by Alfresco Share?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;i released my extended PHP Library …. you can try this one … in my library i implemented a few RESTFul Scripts….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Download here: &lt;/SPAN&gt;&lt;A href="http://forge.alfresco.com/projects/ifresco-phplib/" rel="nofollow noopener noreferrer"&gt;http://forge.alfresco.com/projects/ifresco-phplib/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with my library it must work like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;?php&lt;BR /&gt;&amp;nbsp; $repositoryUrl = "&lt;A href="http://localhost:8080/alfresco/api" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/api&lt;/A&gt;";&lt;BR /&gt;&amp;nbsp; $userName = "admin";&lt;BR /&gt;&amp;nbsp; $password = "admin"; &lt;BR /&gt;&lt;BR /&gt;$repository = new Repository($repositoryUrl);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ticket = $repository-&amp;gt;authenticate($userName, $password);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $session = $repository-&amp;gt;createSession($ticket);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $spacesStore = new SpacesStore($session);&lt;BR /&gt;&lt;BR /&gt;$nodeId = "0000-0000-00000-0000";&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $RESTContent = new RESTContent($repository, $spacesStore, $session);&lt;BR /&gt;echo "&amp;lt;pre&amp;gt;";&lt;BR /&gt;print_r($RESTContent-&amp;gt;DeleteNode($nodeId));&lt;BR /&gt;?&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Code is untested, hopefully it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For a list of all services &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/service/index" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/index&lt;/A&gt;&lt;SPAN&gt; …. if you navigate to "browse all packages" here you will see many webscripts where "/slingshot/" is in the URL. These ones are used by Share.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 15:42:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deleting-a-node/m-p/276949#M230079</guid>
      <dc:creator>ddanninger</dc:creator>
      <dc:date>2011-04-06T15:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a Node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deleting-a-node/m-p/276950#M230080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Well , removeChild isnt implemented in the Alfresco Library right now, i would suggest you to do it via REST – Alfresco Share uses the WebScript:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;A href="http://localhost:8080/alfresco/service/slingshot/doclib/action/file/node/{$nodeRef" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/slingshot/doclib/action/file/node/{$nodeRef&lt;/A&gt;}&lt;BR /&gt;&lt;BR /&gt;nodeRef should be like = "workspace/SpacesStore/XXXXXXXXXXX"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;Just send a "DELETE" Method on the HTTP Request to this URL and it should be fine.&lt;BR /&gt;&lt;BR /&gt;If you have now Idea how to speak to a REST Webservice in PHP , there are many good tutorials out there …. for example -&amp;gt; &lt;A href="http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/" rel="nofollow noopener noreferrer"&gt;http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;its an good implementation of the RESTClient Class, which can be really useful&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Such a very amazing link!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 09:39:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deleting-a-node/m-p/276950#M230080</guid>
      <dc:creator>ligiahag7902</dc:creator>
      <dc:date>2011-04-07T09:39:40Z</dc:date>
    </item>
  </channel>
</rss>

