plugin:flush-scope( $scope as xs:string, [$pid as xs:string?] ) as empty-sequence()
This function unloads all application plugins
from a given scope. Note that system plugins are
unaffected by this function. Like
plugin:initialize-scope
,
this function requires the
application-plugin-registrar
role.
application-plugin-registrar
role, and the best
practice is to put plugin:flush-scope
in a
function that is amped to the
application-plugin-registrar
role.
xquery version "1.0-ml"; import module namespace plugin = "http://marklogic.com/extension/plugin" at "/MarkLogic/plugin/plugin.xqy"; plugin:flush-scope("marklogic.appservices") (: Unloads all of the plugins located in /Assets/plugins/marklogic/appservices :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.