admin.appserverDeleteNamespace( config as element(configuration), appserver-id as (Number|String), namespaces as element(gr.namespace)[] ) as element(configuration)
This function deletes a namespace configuration from the configuration for the specified App Server.
http://marklogic.com/xdmp/privileges/admin/app-server
http://marklogic.com/xdmp/privileges/admin/app-server/{id}
http://marklogic.com/xdmp/privileges/admin/group
http://marklogic.com/xdmp/privileges/admin/group/{id}
let admin = require("/MarkLogic/admin.xqy"); let config = admin.getConfiguration() admin.appserverDeleteNamespace(config, admin.appserverGetId(config,[], "Docs"), fn.head(xdmp.unquote('<namespace xmlns="http://marklogic.com/xdmp/group">\ <prefix>myprefix</prefix>\ <namespace-uri>http://myuri/forthisprefix</namespace-uri>\ </namespace>')).root)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.