sec.removeCredentialById

sec.removeCredentialById(
   credential-id as (Number|String)
) as null

Summary

This function removes the specified credential.

Parameters
credential-id The ID of the credential to be removed.

Required Privileges

http://marklogic.com/xdmp/privileges/remove-credential-by-id

Usage Notes

This function must be executed against the security database.

Example


declareUpdate(); 
const sec = require('/MarkLogic/security.xqy');
 
sec.removeCredentialById(4358548373487543876)

    
Powered by MarkLogic Server | Terms of Use | Privacy Policy