Loading TOC...

pki:delete-template

pki:delete-template(
   $template-id as xs:unsignedLong
) as empty-sequence()

Summary

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.

Example

   (: 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 iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.