Any API Call to delete dir under /etc of the CRXDe Lite? | Community
Skip to main content
September 14, 2023
Solved

Any API Call to delete dir under /etc of the CRXDe Lite?

  • September 14, 2023
  • 2 replies
  • 798 views

Hello guys, 

 

I am trying to find a way to automate deletion a dir under /etc of CRXDe Lite of the author and publish servers 

 

http://localhost/crx/de/index.jsp#/etc/foo/bar/a1

http://localhost/crx/de/index.jsp#/etc/foo/bar/a2

http://localhost/crx/de/index.jsp#/etc/foo/bar/a3

 

Can anyone have any idea? I am trying the 

curl -u admin:admin -X DELETE "http://localhost/crx/de/index.jsp#/etc/foo/bar/a1

but it is not reaching the a1 dir under index.jsp also I am not sure what request URL to use to delete the a1 dir. 

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 Mahedi_Sabuj

Try this command 

curl -u admin:admin -X DELETE "http://localhost:4502/etc/foo/bar/a1"

Reference: https://helpx.adobe.com/experience-manager/kb/delete-a-node-using-curl.html  

2 replies

Mahedi_Sabuj
Community Advisor
Mahedi_SabujCommunity AdvisorAccepted solution
Community Advisor
September 14, 2023

Try this command 

curl -u admin:admin -X DELETE "http://localhost:4502/etc/foo/bar/a1"

Reference: https://helpx.adobe.com/experience-manager/kb/delete-a-node-using-curl.html  

Mahedi Sabuj
September 14, 2023

Thank you~ I am able to make it work! 

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
September 14, 2023

The URL you are targeting to delete is not correct, you should target "http://localhost:4502/etc/foo/bar/a1" without "crx/de/index.jsp" and make sure your AEM port is correct.

 

Esteban Bustamante
September 14, 2023

Yes, thank you so much!