<?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 How to delete node through database in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-delete-node-through-database/m-p/126355#M34398</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I would like to delete specific node&amp;nbsp;throught metadata database (alf_node.id) because of inconsistencies. Pls, does anyone have experience with it? I looking for SQL command.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 04 Mar 2021 12:15:44 GMT</pubDate>
    <dc:creator>miroslav</dc:creator>
    <dc:date>2021-03-04T12:15:44Z</dc:date>
    <item>
      <title>How to delete node through database</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-delete-node-through-database/m-p/126355#M34398</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I would like to delete specific node&amp;nbsp;throught metadata database (alf_node.id) because of inconsistencies. Pls, does anyone have experience with it? I looking for SQL command.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 12:15:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-delete-node-through-database/m-p/126355#M34398</guid>
      <dc:creator>miroslav</dc:creator>
      <dc:date>2021-03-04T12:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete node through database</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-delete-node-through-database/m-p/126356#M34399</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;If you knew the content url, try the below sql query,&lt;/P&gt;&lt;PRE&gt;SELECT
n.id as node_id,
aq.local_name as node_type,
npn.string_value as node_name,
ca.parent_node_id,
cu.content_size,
cu.content_url,
n.uuid,
n.audit_created
FROM alf_node as n
left outer join alf_node_properties npn on
(npn.node_id=n.id and npn.actual_type_n=6 and npn.qname_id in
(select id from alf_qname where local_name='name'))
left outer join alf_node_properties npc on
(npc.node_id=n.id and npc.actual_type_n=21 and npc.qname_id in
(select id from alf_qname where local_name='content'))
left outer join alf_content_data cd on (cd.id = npc.long_value)
left outer join alf_content_url cu on (cd.content_url_id = cu.id)
left outer join alf_child_assoc ca on (ca.child_node_id=n.id)
left outer join alf_qname aq on (n.type_qname_id=aq.id)
where
aq.local_name in ('folder','content')
and cu.content_url like '%{content_url}%'&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Mar 2021 18:04:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-delete-node-through-database/m-p/126356#M34399</guid>
      <dc:creator>arjunmony</dc:creator>
      <dc:date>2021-03-04T18:04:58Z</dc:date>
    </item>
  </channel>
</rss>

