Skip to content

Instantly share code, notes, and snippets.

@c3ry5
Forked from funkman/remove-geometrixx.sh
Created October 5, 2016 12:19
Show Gist options
  • Save c3ry5/ae79a2b16ebbdab4c60530da3167be7d to your computer and use it in GitHub Desktop.
Save c3ry5/ae79a2b16ebbdab4c60530da3167be7d to your computer and use it in GitHub Desktop.
Remove all geometrixx (and other sample content) from AEM 6.2
#!/bin/sh
# UNINSTALL PACKAGES
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/adobe/aem6/sample/we.retail.download-1.0.8.zip?cmd=uninstall
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/adobe/aem6/sample/we.retail.download-1.0.8.zip?cmd=delete
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/aemfd/cq-geometrixx-gov-pkg-3.0.6.zip?cmd=uninstall
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/aemfd/cq-geometrixx-gov-pkg-3.0.6.zip?cmd=delete
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-all-pkg-5.9.222.zip?cmd=uninstall
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-all-pkg-5.9.222.zip?cmd=delete
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-commons-pkg-5.10.10.zip?cmd=uninstall
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-commons-pkg-5.10.10.zip?cmd=delete
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-login-pkg-5.7.0.zip?cmd=uninstall
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-login-pkg-5.7.0.zip?cmd=delete
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-media-pkg-5.9.40.zip?cmd=uninstall
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-media-pkg-5.9.40.zip?cmd=delete
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-media-ugc-pkg-5.8.10.zip?cmd=uninstall
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-media-ugc-pkg-5.8.10.zip?cmd=delete
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-outdoors-app-pkg-5.9.60.zip?cmd=uninstall
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-outdoors-app-pkg-5.9.60.zip?cmd=delete
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-outdoors-pkg-5.9.116.zip?cmd=uninstall
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-outdoors-pkg-5.9.116.zip?cmd=delete
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-outdoors-ugc-pkg-5.8.18.zip?cmd=uninstall
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-outdoors-ugc-pkg-5.8.18.zip?cmd=delete
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-pkg-5.9.50.zip?cmd=uninstall
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-pkg-5.9.50.zip?cmd=delete
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-unlimited-app-pkg-1.0.40.zip?cmd=uninstall
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-unlimited-app-pkg-1.0.40.zip?cmd=delete
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-users-pkg-5.9.12.zip?cmd=uninstall
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-users-pkg-5.9.12.zip?cmd=delete
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-workflow-pkg-5.7.0.zip?cmd=uninstall
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-geometrixx-workflow-pkg-5.7.0.zip?cmd=delete
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq61/product/screens-geometrixx-instore-pkg-1.0.160.zip?cmd=uninstall
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq61/product/screens-geometrixx-instore-pkg-1.0.160.zip?cmd=delete
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-dam-sample-content-1.1.20.zip?cmd=uninstall
sleep 2
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq60/product/cq-dam-sample-content-1.1.20.zip?cmd=delete
# Delete various nodes too
curl -X DELETE http://localhost:4502/apps/geometrixx-unlimited-app -u admin:admin
curl -X DELETE http://localhost:4502/content/dam/geometrixx-instore -u admin:admin
curl -X DELETE http://localhost:4502/content/dam/geometrixx-outdoors -u admin:admin
curl -X DELETE http://localhost:4502/content/dam/geometrixx-unlimited-app -u admin:admin
curl -X DELETE http://localhost:4502/content/mobileapps/geometrixx-unlimited -u admin:admin
curl -X DELETE http://localhost:4502/content/projects/geometrixx -u admin:admin
curl -X DELETE http://localhost:4502/apps/commerce/gui/content/catalogs/importblueprintswizard/importers/geometrixx -u admin:admin
curl -X DELETE http://localhost:4502/content/catalogs/geometrixx-outdoors -u admin:admin
curl -X DELETE http://localhost:4502/etc/contentsync/templates/dps-geometrixx-unlimited-app -u admin:admin
curl -X DELETE http://localhost:4502/etc/designs/default/jcr:content/page_geometrixx_newsletter -u admin:admin
curl -X DELETE http://localhost:4502/etc/designs/geometrixx-unlimited-app -u admin:admin
curl -X DELETE http://localhost:4502/etc/designs/phonegap/geometrixx -u admin:admin
curl -X DELETE http://localhost:4502/home/groups/screens/geometrixx -u admin:admin
curl -X DELETE http://localhost:4502/libs/granite/core/content/login/clientlib/resources/bg/geometrixx -u admin:admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment