tieredstorage.partitionDelete( database-id as (Number|String), partition-name as String, delete-data as Boolean, [options as String[]] ) as null
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.
const ts = require('/MarkLogic/tieredstorage'); declareUpdate(); ts.partitionDelete(xdmp.database('Documents'), '2017-October', xs.boolean('true'));
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.