问题
I have the login id's of all the 500 users which need to be deleted from AEM 6.3 .
How can i do it by using curl command .
回答1:
Use applyTo request parameter to remove multiple items through a single request.
To delete multiple users -
curl -u admin:admin -F":operation=delete" -F":applyTo=/home/users/geometrixx/charles.s.johnson@trashymail.com" \
-F":applyTo=/home/users/geometrixx/carlene.j.avery@mailinator.com" http://localhost:4502/home/users
Try this on your local instance first, you might want to execute this in the publish instances as well to keep all the instances in sync. You can also use wildcard \* to delete all items under parent node.
来源:https://stackoverflow.com/questions/52261941/delete-multiple-users-by-there-login-id-in-aem-using-curl