tieredstorage:partition-delete( $database-id as xs:unsignedLong, $partition-name as xs:string, $delete-data as xs:boolean, [$options as xs:string*] ) as empty-sequence()
This function deletes all forests in the specified partition. This function needs to be executed in the context of a database other than the database of the partition being deleted. For details, see Deleting Partitions in the Administrator's Guide.
xquery version "1.0-ml"; import module namespace ts="http://marklogic.com/xdmp/tieredstorage" at "/MarkLogic/tieredstorage.xqy"; ts:partition-delete(xdmp:database("Documents"),"2012-April",xs:boolean("true"),"timeout=10") => ()
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.