Uninstall all parts of an application | Community
Skip to main content
October 16, 2015
Solved

Uninstall all parts of an application

  • October 16, 2015
  • 3 replies
  • 990 views

Whats the easiest (and more reliable/repeatable) way of removing all parts of an application from AEM. I mean, everything under apps, content, etc, var, ...

I find myself doing this quite a lot recently (while I'm developing some dev tooling) and typically I do something like :-

  1. Uninstall and delete packages using Package Manager
  2. Delete any OSGI bundles from apps/myapp/install
  3. Delete apps/myapp
  4. Delete content/myapp

But if I then run a query using 'myapp' I will find more stuff in etc/designs/myapp, and in /var/classes/org/apache/jsp/apps/myapp, and then a whole bunch of audit entries and yet more under linkchecker ... and so on

It would be great to have a script or something similar to remove all trace in one go.

Any suggestions ?

Kind Regards

Fraser.

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 Alex_Popov1

I can suggest to manually remove all resources which related to your application.
After this create package with filters to resources which were removed on previous step.
When you need to remove all parts of an application, you can install this package.

3 replies

smacdonald2008
Level 10
October 16, 2015

It may be something that can be written using a custom script - but out of the box -- i have not found documentation or scripts for this use case. 

Alex_Popov1Accepted solution
Level 4
October 16, 2015

I can suggest to manually remove all resources which related to your application.
After this create package with filters to resources which were removed on previous step.
When you need to remove all parts of an application, you can install this package.

Scott_Brodersen
Level 8
October 16, 2015

Popov555 wrote...

I can suggest to manually remove all resources which related to your application.
After this create package with filters to resources which were removed on previous step.
When you need to remove all parts of an application, you can install this package.

 

I think using packages is the way to go as well. http://docs.adobe.com/docs/en/aem/6-0/administer/content/package-manager.html

scott