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.
- Change into the root directory of your Alfresco installation.
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.
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.
Delete the tomcat/webapps/alfresco and
tomcat/webapps/share folders in the Alfresco
Deleting these directories forces Tomcat to read the edited WAR files when Alfresco is restarted.