Sunday

Uninstalling an amp module

Since it seems there is no certain ways to uninstall an amp module from alfresco, I tried with the following and its working fine. Though there is an uninstall command with alfresco-mmt.jar (as mentioned in alfresco wiki) but currently it is not supported.

1. Remove the current alfresco.war and share.war as required from your directory.
2. Rename your old .bak files to alfresco.war or share.war
3. Clean your temp/* and work/* files in case of tomcat
4. Restart the tomcat and see the changes.

There is another way to do this but it is very risk as it is recommended that "Don't touch the alfresco database".
https://forums.alfresco.com/en/viewtopic.php?t=11589

2 comments:

  1. This approach would then uninstall *all* modules that were installed in the last amp installation process (before the war file was renamed to bak), which means, after you have done the steps you mentioned above, you then need to remove the respective amp file from the amps and amps_share folder and then run the installation process again, isn't that right?

    ReplyDelete
    Replies
    1. Yes, It will happen If you have installed all the amp modules at a time. But if You have installed one by one , then it wont remove all the modules.Any way, right now alfresco provides a way to complete this job.

      The syntax for uninstalling an AMP file using the MMT is
      java -jar bin/alfresco-mmt.jar uninstall

      The syntax to list down all the installed module
      java -jar ./bin/alfresco-mmt.jar list tomcat/webapps/alfresco

      For more refer to http://docs.alfresco.com/4.2/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Ftasks%2Fdev-extensions-tutorials-simple-module-uninstall-amp.html

      Delete