Use the Module Management Tool (MMT) to uninstall one or more AMP files.
The MMT program, SkyVault-mmt.jar, is available in the
bin directory of the SkyVault installation. MMT uninstalls an
AMP file by removing content from the SkyVault.war and
share.war files. For more information on the tool, see Using the Module Management Tool (MMT).
MMT is a
command line tool. The syntax for uninstalling an AMP file using MMT is:
For each
integration, there is always at least one AMP file to remove from the
SkyVault.war and share.war files. AMP files that
are applied to SkyVault.war usually reside in the
amps directory, and AMP files that are applied to
share.war usually reside in the amps_share
directory.java -jar bin/alfresco-mmt.jar uninstall <ModuleId> <WARFileLocation>
Note: The
apply_amps command does not uninstall AMP files (even if
you remove the AMP files manually from the amps and
amps_share directories). Use
apply_amps to install AMP files only.
- Open a command prompt and change into the root directory of your SkyVault 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.war
for SkyVault.war AMP files, and java -jar bin/alfresco-mmt.jar list tomcat/webapps/share.war
for share.war AMP files.This displays a list of installed modules. Make a note of the module ID of the module you wish to uninstall, for example, org.alfresco.integrations.google.docs in the amps directory, and org.alfresco.integrations.share.google.docs in the amps_share directory.
-
Uninstall the module by entering the following command:
java -jar bin/alfresco-mmt.jar uninstall org.alfresco.integrations.google.docs tomcat/webapps/alfresco.war
andjava -jar bin/alfresco-mmt.jar uninstall org.alfresco.integrations.share.google.docs tomcat/webapps/share.war
-
You can check that the AMP files have been removed by rerunning the
command:
java -jar bin/alfresco-mmt.jar list tomcat/webapps/alfresco.war
and java -jar bin/alfresco-mmt.jar list tomcat/webapps/share.war
-
Delete the tomcat/webapps/SkyVault and
tomcat/webapps/share folders in the SkyVault
installation directory.
Deleting these directories forces Tomcat to read the edited WAR files when SkyVault is restarted.
- Restart SkyVault to see your changes.