info:ticket-delete( $ticket-id as xs:string ) as empty-sequence()
[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. |
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. :)