Microsoft recently introduced a preview feature for Dataverse Bulk Delete Jobs that provides additional control over bulk delete processing. One of the new options available when creating a bulk delete job through the API is RunJobForSandbox.

According to the documentation, this option is intended to control sandbox processing during bulk delete operations, which could be particularly useful in environments where delete plugins or custom workflows impact large-scale data cleanup activities.
For our testing, we created a Bulk Delete Job using Postman and included the following option in the request payload:

{
"QuerySet": [
{
"EntityName": "contact",
"Criteria": {
"FilterOperator": "And",
"Conditions": [
{
"AttributeName": "createdon",
"Operator": "OnOrBefore",
"Values": [
{
"Value": "2026-09-07T23:59:59Z",
"Type": "System.DateTime"
}
]
}
]
}
}
],
"JobName": "Sample Bulk Delete Job with Run Job For Sandbox True",
"SendEmailNotification": false,
"RecurrencePattern": "",
"StartDateTime": "2026-05-18T00:00:00Z",
"ToRecipients": [],
"CCRecipients": [],
"Options": {
"CanRecoverDeletedRecords": false,
"RunJobForSandbox": true
}
}
The complete job targeted Contact records based on their Created On date and was created successfully.
To understand how this option behaves, we registered a simple plugin on the Delete message of the Contact table. The plugin was intentionally designed to throw an InvalidPluginExecutionException whenever a record deletion was attempted.

Our expectation was that enabling RunJobForSandbox would prevent the sandbox plugin from executing during the bulk delete process, allowing the records to be deleted successfully.
However, the results were different from what we anticipated.
When the bulk delete job was executed, the delete plugin was still triggered. Because the plugin threw an exception, all targeted records failed to delete. The Bulk Delete Job completed with failures and reported errors indicating that the deletion operation had been aborted by a plugin or custom workflow.

Since this capability is currently in Preview, it is possible that the feature is still evolving, has limitations that are not yet documented, or requires additional configuration. To better understand the observed behavior, we have raised a Microsoft Support ticket and are awaiting clarification from the team.
Even though our initial test did not produce the expected result, this is still a very promising feature. Once fully implemented and generally available, the ability to control sandbox processing during bulk delete operations could make large-scale data cleanup significantly easier, especially in environments where plugins and custom workflows frequently interfere with bulk deletion activities.
We’d update this post once we receive additional information from Microsoft regarding the current behavior and intended functionality of RunJobForSandbox.
The feature is documented here:
Control Bulk Delete Processing (Preview)
Hope it helps..
Discover more from Nishant Rana's Weblog
Subscribe to get the latest posts sent to your email.
