How to delete a node property using ajax/Extjs | Community
Skip to main content
Level 6
October 16, 2015
Solved

How to delete a node property using ajax/Extjs

  • October 16, 2015
  • 1 reply
  • 1285 views

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Premkarthic-7WP

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.

1 reply

Premkarthic-7WP
Premkarthic-7WPAccepted solution
Level 4
October 16, 2015

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.