sec.removeAmp( namespace as String, local-name as String, document-uri as String, database as xs.anyAtomicType ) as null
Removes the amp ($namespace, $local-name, $document-uri, $database) and returns empty-sequence().
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 declareUpdate(); const sec = require('/MarkLogic/security.xqy'); sec.removeAmp( "http://marklogic.com/my_modules/myspace", "my-amp", "/MarkLogic/MyModule.xqy", 0) // Removes the "my-amp" amp.