Example: Activating/Deactivating a Configuration
Use the following script to activate or deactivate a configuration. Run the script in Query Console against the App-Services database.
xquery version "1.0-ml"; declare namespace env-ui = "http://marklogic.com/environment-ui"; (: Set this var to false to deactivate, true to activate :) let $state := fn:false() let $env-ui-node := fn:doc('/cluster-ui-settings.xml')/env-ui:environment-ui return if (exists($env-ui-node)) then xdmp:node-replace( $env-ui-node/env-ui:ui-active, <env-ui:ui-active>{$state}</env-ui:ui-active>) else () (: Reload Query Console to see your changes :)