
pki:delete-template( $template-id as xs:unsignedLong ) as empty-sequence()
This function removes the specified certificate request template from the Security database.
| Parameters | |
|---|---|
| template-id | The id of the certificate request template to be removed. |
(: execute this against the security database :)
xquery version "1.0-ml";
import module namespace pki = "http://marklogic.com/xdmp/pki"
at "/MarkLogic/pki.xqy";
let $tid := pki:template-get-id(pki:get-template-by-name("test"))
return (fn:concat("Removed: ", $tid), pki:delete-template($tid))
(: Deletes the template, named "test," from the database. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.