Loading TOC...

info:ticket-delete

info:ticket-delete(
   $ticket-id as xs:string
) as empty-sequence()

Summary

[DEPRECATED] This function deletes a ticket and all associated state information. If the ticket is successfully deleted or does not exist, returns empty-sequence(). A tickets cannot be deleted if work is in progress.

Parameters
ticket-id The id of the ticket to be deleted.

Example

  xquery version "1.0-ml"; 

  import module namespace info = "http://marklogic.com/appservices/infostudio"  
      at "/MarkLogic/appservices/infostudio/info.xqy";

  for $ticket in info:tickets("testDB") 
     return info:ticket-delete($ticket)

  (: Deletes all of the tickets associated with the testDB database. :)
     

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