Loading TOC...

tieredstorage.partitionDelete

tieredstorage.partitionDelete(
   $database-id as (Number|String),
   $partition-name as String,
   $delete-data as Boolean,
   [$options as String[]]
) as null

Summary

This function deletes all forests in the specified partition. For details, see Deleting Partitions in the Administrator's Guide.

Parameters
$database-id ID of the database in which the partition will reside.
$partition-name Name of the partition.
$delete-data Whether or not data will be deleted.
$options Whether or not data will be deleted. Valid option 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

const ts = require('/MarkLogic/tieredstorage');

declareUpdate();
ts.partitionDelete(xdmp.database('Documents'), '2017-October', xs.boolean('true'));
   

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