MarkLogic Server 11.0 Product Documentation
tieredstorage:partition-delete-query

tieredstorage:partition-delete-query(
   $schema-database-id as xs:unsignedLong,
   $partition-number as xs:unsignedInt
) as empty-sequence()

Summary

This function deletes the query from the specified partition. It will not throw any error if query is not found.

Parameters
schema-database-id ID of the Schema database used by the database in which the partition resides.
partition-number The partition number from which to delete the query.

Example


xquery version "1.0-ml"; 
 
import module namespace ts="http://marklogic.com/xdmp/tieredstorage" 
      at "/MarkLogic/tieredstorage.xqy";

ts:partition-delete-query(xdmp:database("Schemas"), 1)
 
(: Deletes the query set for partition 1 in the "Schemas database. :) 
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy