sec:remove-amp( $namespace as xs:string, $local-name as xs:string, $document-uri as xs:string, $database as xs:unsignedLong ) as empty-sequence()
Removes the amp ($namespace, $local-name, $document-uri, $database) and returns true after completion.
http://marklogic.com/xdmp/privileges/remove-amp
If an amp ($namespace, $local-name, $document-uri) is not found, an error is returned.
This function must be executed against the security database.
(: execute this against the security database :) xquery version "1.0-ml"; import module namespace sec="http://marklogic.com/xdmp/security" at "/MarkLogic/security.xqy"; sec:remove-amp( "http://marklogic.com/my_modules/myspace", "my-amp", "/MarkLogic/MyModule.xqy", 0) (: Removes the "my-amp" amp. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.