The object allows you to configure basic bulk deletion of items with recovery capability. To permanently bulk delete app items, use ApplicationBatchHardDeleteBuilder.
The method runs a batch delete.
Returns the number of actually deleted items according to ApplicationBatchDeleteBuilder.size, starting with ApplicationBatchDeleteBuilder.from. By default the size of the deleted items is limited to 10 entries. To delete more items, use the method ApplicationBatchDeleteBuilder.size.
const searchResults = await Application.batch() .delete() .where((f, g) => g.and ( f.__deletedAt.eq(null), f.str.eq(null) )) .all();
The method allows you to skip a specified number of items to be deleted.
The method configures sending notifications when items are deleted.
The method allows you to set a limit on the number of items to be deleted.
The method allows sorting the items to be deleted.
If the results need to be sorted by several parameters, you can call the method several times.
The method allows you to set a filter for the items to be deleted from the collection.
Your review is successfully sent!
Feedback sent successfully
Configuration object for bulk soft deletion of app items
The object allows you to configure basic bulk deletion of items with recovery capability. To permanently bulk delete app items, use ApplicationBatchHardDeleteBuilder.
Type parameters
TFull: ItemData
Hierarchy
Methods
all
The method runs a batch delete.
Returns the number of actually deleted items according to ApplicationBatchDeleteBuilder.size, starting with ApplicationBatchDeleteBuilder.from. By default the size of the deleted items is limited to 10 entries. To delete more items, use the method ApplicationBatchDeleteBuilder.size.
const searchResults = await Application.batch() .delete() .where((f, g) => g.and ( f.__deletedAt.eq(null), f.str.eq(null) )) .all();Returns Promise<number>
from
The method allows you to skip a specified number of items to be deleted.
Parameters
n: number
Returns this
notify
The method configures sending notifications when items are deleted.
Parameters
enabled: boolean
Returns this
size
The method allows you to set a limit on the number of items to be deleted.
Parameters
n: number
Returns this
sort
The method allows sorting the items to be deleted.
If the results need to be sorted by several parameters, you can call the method several times.
Parameters
field: keyof TFull
Optional ascending: undefined | false | true
Returns this
where
The method allows you to set a filter for the items to be deleted from the collection.
Parameters
fc: FilterClosure<TFull>
Returns this
The method allows you to set a filter for the items to be deleted from the collection.
Parameters
eql: EqlQuery
Optional params: EqlParams
Returns this
Feedback sent successfully
Thank you for your input