Purge scripts

Script Description
purgeCollections

Deletes collections from the database according to a filter.

Parameter

PurgeCollectionsConditionFilter: expression used to filter the collections that will be purged.

changeCollectionStatus

Changes the status of business collections according to a filter.

Parameter

ChangeCollectionStatusTargetStatus: expression used to filter the collections that will change the status.

quickPurgeCollections

Purges a list of business collections according to a filter. The operation is not performed in a single transaction, but in many small transactions where each one deletes a limited number of rows. Because of that, it is recommended to change the status of the collections that have to be purged by this command using the changeCollectionStatus command.

Parameters

QuickPurgeCollectionsFilter: expression used to filter the collections that will be purged.

QuickPurgeCollectionsChunkSize: maximum number of rows to delete in each transaction.

Related Links