<?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 Is there any way to remove node property using JS API? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/is-there-any-way-to-remove-node-property-using-js-api/m-p/247745#M200875</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;I am using Alfresco 3.4 and I need to delete node properties by JS web script. I did not found any mentions of removing properties in docs or in ScripNode sources.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Removing property from properties array and saving node does not remove properties (I looked to the code and saw that properties are actually merged).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to remove node property using JS API?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2011 18:28:04 GMT</pubDate>
    <dc:creator>masterhard</dc:creator>
    <dc:date>2011-03-31T18:28:04Z</dc:date>
    <item>
      <title>Is there any way to remove node property using JS API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-there-any-way-to-remove-node-property-using-js-api/m-p/247745#M200875</link>
      <description>Hello,I am using Alfresco 3.4 and I need to delete node properties by JS web script. I did not found any mentions of removing properties in docs or in ScripNode sources.Removing property from properties array and saving node does not remove properties (I looked to the code and saw that properties ar</description>
      <pubDate>Thu, 31 Mar 2011 18:28:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-there-any-way-to-remove-node-property-using-js-api/m-p/247745#M200875</guid>
      <dc:creator>masterhard</dc:creator>
      <dc:date>2011-03-31T18:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to remove node property using JS API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-there-any-way-to-remove-node-property-using-js-api/m-p/247746#M200876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The unique way to remove properties in Alfresco is declaring all these properties in an aspect and then use the addAspect and removeAspect methods to manage the properties as you wish.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 10:19:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-there-any-way-to-remove-node-property-using-js-api/m-p/247746#M200876</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2011-04-06T10:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to remove node property using JS API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-there-any-way-to-remove-node-property-using-js-api/m-p/247747#M200877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;But in Java, you can call nodeService.removeProperty() - is there no equivalent in JavaScript?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What if you just want to remove one property value (something that is optional), not the entire aspect (which might include mandatory properties too)…?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or would just setting the value to null do the trick?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 17:04:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-there-any-way-to-remove-node-property-using-js-api/m-p/247747#M200877</guid>
      <dc:creator>dnallsopp</dc:creator>
      <dc:date>2012-12-03T17:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to remove node property using JS API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-there-any-way-to-remove-node-property-using-js-api/m-p/247748#M200878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;delete&lt;/SPAN&gt; node&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;properties&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"yourprefix:yourproperty"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;node&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;save&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 15:38:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-there-any-way-to-remove-node-property-using-js-api/m-p/247748#M200878</guid>
      <dc:creator>electroshokker</dc:creator>
      <dc:date>2014-01-09T15:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to remove node property using JS API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-there-any-way-to-remove-node-property-using-js-api/m-p/247749#M200879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe both answers are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to remove properties from nodes, I mean, from all the nodes of some custom type, you should be changing the content model, as &lt;B&gt;Piergiorgio Lucidi&lt;/B&gt; answered, but if the problem you are trying to solve is to remove residual properties, that are properties not defined anywhere, then you should be using the answer from &lt;A __default_attr="85574" __jive_macro_name="user" _jive_internal="true" class="jive_macro jive_macro_user link-titled" href="https://community.alfresco.com/people/electroshokker" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 17:08:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-there-any-way-to-remove-node-property-using-js-api/m-p/247749#M200879</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-01-09T17:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to remove node property using JS API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-there-any-way-to-remove-node-property-using-js-api/m-p/247750#M200880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 11:48:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-there-any-way-to-remove-node-property-using-js-api/m-p/247750#M200880</guid>
      <dc:creator>sercama</dc:creator>
      <dc:date>2018-02-28T11:48:48Z</dc:date>
    </item>
  </channel>
</rss>

