xdmp.logout() as null
Logs the current user out of the session on the server. The result is that the current user is set to the default user defined in application-level authentication. The session remains on the server until it expires.
xdmp.logout() => ()
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.