1

I want to remove a property from a node.

Using "removeProperty(NodeRef nodeRef, QName qname)" i can remove it, but i don't know will it cause any problem(like data correption, indexing issue or something ).

Can anyone please help me

  • can you share a code snippet? the error you're getting ? – Younes Regaieg Mar 31 '16 at 08:55
  • Thanks Younes. i didnt try it out. when i searched, i found "removeProperty(NodeRef nodeRef, QName qname)". Before trying i just want to know will there be any data correption or somthing because of this, so that i can take some precautions. – Sheljith krishnan Mar 31 '16 at 11:45

1 Answers1

3

The short answer is, no - it won't cause any data corruption or indexing issues. One caveat to this, the data model will not allow you to remove mandatory properties (you'll get an error if you attempt to do this). It will not cause any issues with indexing.

Dave Draper
  • 1,837
  • 11
  • 25