Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How to delete a node property using ajax/Extjs

Avatar

Level 6

I want to delete a property of a node, so I have written something like this -

  var params={};var propKey="somekey"+"@Delete";params[propKey] = "some value";params["_charset_"] ="utf-8";$CQ.post("/path/to/my/node",params,null);

 

above code is not deleting from the node. Kindly advice!

1 Accepted Solution

Avatar

Correct answer by
Level 4

Sam,

You can delete a property in node as mentioned below..

CQ.HTTP.post('/path/to/my/node', null, { propname: null });} 

hope this will work for you.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

Sam,

You can delete a property in node as mentioned below..

CQ.HTTP.post('/path/to/my/node', null, { propname: null });} 

hope this will work for you.