Loading TOC...

MarkLogic Server 11.0 Product Documentation
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)

    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.