I am trying to delete only child pages using curl in CQ5 with this command
curl -X DELETE http://%HOSTAUTHOR%:%PORTAUTHOR%/content/a/b/c/d/e/f/g/ -u %USER%:%PASSWORD%
I want only the pages under /content/a/b/c/d/e/f/g/ to be deleted and not the 'g' page. But the parent page also gets deleted.
Trying
curl -X DELETE %HOSTAUTHOR%:%PORTAUTHOR%/content/a/b/c/d/e/f/g/* -u %USER%:%PASSWORD%
does not delete anything
and trying
curl -X DELETE %HOSTAUTHOR%:%PORTAUTHOR%/content/a/b/c/d/e/f/g -u %USER%:%PASSWORD%
deletes the 'g' page as well.
Can anybody help me in writing the correct syntax so that only the pages under /content/a/b/c/d/e/f/g/ get deleted and not the whole 'g' page as well?