[ 
https://issues.apache.org/jira/browse/SLING-2415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13205143#comment-13205143
 ] 

Chaitanya Atreya commented on SLING-2415:
-----------------------------------------

In general, a RESTful parent node could have a sling:resourceType or other 
useful metadata that one wouldn't want to lose. However, in order to delete all 
its children, the only way is to delete the parent node as well (thus losing 
the sling:resourceType and a possible rendering of this parent page), which 
will then have to be recreated to bring the system back to normalcy. There 
surely must be a better way than this.

                
> Ability to delete child nodes, without deleting the parent node in 
> SlingPostServlet
> -----------------------------------------------------------------------------------
>
>                 Key: SLING-2415
>                 URL: https://issues.apache.org/jira/browse/SLING-2415
>             Project: Sling
>          Issue Type: New Feature
>          Components: Servlets
>            Reporter: Chaitanya Atreya
>
> Provide a way to delete all the child nodes of a given node in the 
> SlingPostServlet, without deleting the parent node itself.
> There are many situations where one might want to delete only the child 
> nodes, while keeping the parent node intact. 
> One way to do this now is to use the :applyTo request parameter for each 
> child node. However, this requires first fetching all the child nodes, which 
> can be avoided with this feature.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to