Skip to content

Instantly share code, notes, and snippets.

@TMG-MattNewman
Last active February 15, 2022 12:37
Show Gist options
  • Save TMG-MattNewman/84b8f0b8ba9c765e4aa98d0ef29b4078 to your computer and use it in GitHub Desktop.
Save TMG-MattNewman/84b8f0b8ba9c765e4aa98d0ef29b4078 to your computer and use it in GitHub Desktop.
curl -u admin:admin http://localhost:4502/crx/packmgr/service.jsp\?cmd\=ls | grep -o "pack_[a-z0-9\-]*" > aem-packages-to-delete.txt
while read line; do curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/temporary/$line.zip\?cmd\=delete ; done < aem-packages-to-delete.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment