MarkLogic 9 Product Documentation
plugin:uninstallplugin: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. :)
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.