cdict:dictionary-delete( $lang as xs:string, [$tokenization as xs:boolean] ) as empty-sequence()
Delete a custom dictionary.
custom-dictionary-admin
or the
following privileges:
http://marklogic.com/xdmp/privileges/custom-dictionary-admin
If your language configure uses user-defined lexer and/or stemmer plugins, you can define additional privileges for finer control. For details, see Custom Dictionary Security Considerations in the Search Developer's Guide.
xquery version "1.0-ml"; import module namespace cdict = "http://marklogic.com/xdmp/custom-dictionary" at "/MarkLogic/custom-dictionary.xqy"; cdict:dictionary-delete("en")
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.