You are here

Uninstall an AMP file

This information helps you to uninstall your AMP file. The installed AMP can be uninstalled at any time using the MMT.
Note: The MMT is included in the Alfresco installers, and it is also available as a separate JAR file from the Alfresco Distribution zip (alfresco-community-5.0.d.zip), in the zip's /bin directory. Place the /bin directory and its contents in the same location that is used by the Alfresco installer (<installdir>/bin).
The syntax for uninstalling an AMP file using the MMT is:
java -jar bin/alfresco-mmt.jar uninstall <ModuleId> <WARFileLocation>
            

In this case the ModuleID is com_alfresco_tutorials_photo_search and the WAR file location is tomcat/webapps/alfresco.

  1. Change into the root directory of your Alfresco installation.
  2. Check for the presence of the module you wish to delete by typing in the following command:

     java -jar ./bin/alfresco-mmt.jar list tomcat/webapps/alfresco                        
                        

    This will display a list of installed modules. Make a note of the module ID of the module you wish to uninstall, in this case com_alfresco_tutorials_photo_search.

  3. Now, to uninstall the module type the following command:

    java -jar ./bin/alfresco-mmt.jar uninstall com_alfresco_tutorials_photo_search tomcat/webapps/alfresco.war                       
                        

    You will see a list of files removed from the WAR.

  4. Delete the tomcat/webapps/alfresco and tomcat/webapps/share folders in the Alfresco installation directory.

    Deleting these directories forces Tomcat to read the edited WAR files when Alfresco is restarted.

You have now uninstalled your AMP file.

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.