Skip to main content
Level 3
Jun 3, 2025 7:10 AM UTC
Solved

How to delete groups on AEM Cloud Publisher

Hi Team,

 

I want to delete some user groups on publisher, how can I delete the groups on publisher directly? Is there any curl or process to handle the users or groups on publisher?

 

Thanks,
SD

giuseppebaglio
giuseppebaglioAccepted solution
Level 10
Jun 3, 2025 8:33 AM UTC

You can delete a group by sending a POST request to the group’s node path with the deleteAuthorizable parameter:

curl -u admin:admin -FdeleteAuthorizable= http://<publisher-host>:<port>/home/groups/<first-char>/<groupID>

You must know the exact JCR path of the group. 

For bulk deletion, you can prepare a list of group paths and use a shell script to iterate and delete each group:

while read groupPath; do curl -u admin:admin -FdeleteAuthorizable= http://publisher-host:4503$groupPath done < group-paths.txt

2 replies

giuseppebaglio
giuseppebaglioAccepted solution
Level 10
Jun 3, 2025 8:33 AM UTC

You can delete a group by sending a POST request to the group’s node path with the deleteAuthorizable parameter:

curl -u admin:admin -FdeleteAuthorizable= http://<publisher-host>:<port>/home/groups/<first-char>/<groupID>

You must know the exact JCR path of the group. 

For bulk deletion, you can prepare a list of group paths and use a shell script to iterate and delete each group:

while read groupPath; do curl -u admin:admin -FdeleteAuthorizable= http://publisher-host:4503$groupPath done < group-paths.txt
Translate
AmitVishwakarma
Community Advisor
Community Advisor
Jun 3, 2025 1:35 PM UTC

Hi @sdusane ,

Translate
Amit Vishwakarma - Adobe Commerce Champion 2025 | 17x Adobe certified | 6x Adobe SME