MarkLogic 10 Product Documentation
tieredstorage:partition-deletetieredstorage:partition-delete(
$database-id as xs:unsignedLong,
$partition-name as xs:string,
$delete-data as xs:boolean,
[$options as xs:string*]
) as empty-sequence()
Summary
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.
Parameters |
database-id |
ID of the database in which the forest partition is residing.
|
partition-name |
Name of the partition.
|
delete-data |
Whether or not data will be deleted.
If the data directory of the forest is empty (using the default), the data will always be deleted.
This only affects the forest where the data directory is specified.
|
options |
Valid options value:
"timeout=N" -
Specifies the number of seconds to wait for a forest to re-open after a
configuration is made during the delete operation.
|
Example
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")
=>
()
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.