MarkLogic 9 Product Documentation
plugin:uninstall

plugin:uninstall(
   $scope as xs:string,
   $pid as xs:string?
) as empty-sequence()

Summary

This function removes a named plugin or set of plugins from the extensions database.

Parameters
scope A scope identifier. This must be a "dotted" package-style path, which will be resolved relative to the marklogic-dir/Assets/plugins directory. For example, a $scope value of my-plugin-scope is resolved to the marklogic-dir/Assets/plugins/myplugin-scope directory and a $scope value of my.plugin.scope is resolved to the marklogic-dir/Assets/plugins/my/plugin/scope directory.
pid A plugin ID.

Example

xquery version "1.0-ml"; 
 
import module namespace plugin = "http://marklogic.com/extension/plugin" 
      at "/MarkLogic/plugin/plugin.xqy";

plugin:uninstall("marklogic.appservices", "collector-test")

(: Uninstalls the 'collector-test' plugin located in 
   /Assets/plugins/marklogic/appservices from the Extensions database. :) 
      
Powered by MarkLogic Server | Terms of Use | Privacy Policy