Use the Salesforce Bulk API to permanently delete records from Salesforce. The Bulk API is a RESTful API optimized for processing large data sets asynchronously.
When records are deleted using standard API calls, they are moved to the Recycle Bin. To permanently remove deleted records without waiting 15 days or manually emptying the Recycle Bin, you can use the Bulk API's hardDelete operation.
Prerequisites:
Before performing a hard delete using the Bulk API, ensure the following:
By using following instructions you will be able to delete the records permanently using Workbench with REST Bulk API:
Use a REST Client like Postman or Workbench. Authentication works a bit differently in Bulk API. We need a valid session ID, which we’ll include in the X-SFDC-Session header with each of our Bulk API requests. We obtain a session ID using the SOAP API login() call.
For the URI, replace the text in the URI text box with the following: /services/async/XX.0/job, where XX.0 corresponds to the API version you’re using
The request body must specify the operation as hardDelete, the Salesforce object type you want to delete (for example, Account), and the content type as JSON. The three required fields in the request body are: operation, object, and contentType. For the request body, copy and paste the following text.
{
"operation" : "hardDelete",
"object" : "Account",
"contentType" : "JSON"
}
Add Batches to the Job. Now we can hard delete account data via a batch. A batch is a set of records sent to the server in a POST request. The server processes each batch independently, not necessarily in the order it’s received. Replace the text in the URI text box with the following: /services/async/XX.0/job/jobID/batch. Replace jobID with the job ID you generated above.
We’ve submitted our batches. Now it’s up to the server to process the request. We can monitor the server’s progress by checking the status of the job’s batches through the Salesforce UI. In Salesforce, from Setup, enter Bulk Data Load Jobs in the Quick Find box, then select Bulk Data Load Jobs.
Click on the JobId which we have created, you will get the status of your batches, if it failed you will see the error, if it completed you will see the same in status.
You can check now , records has been permanently deleted from the Salesforce you will not find those in Recycle bin.
Important Note About Workbench:
Workbench is a free, open-source, community-supported tool. It is not a Salesforce product, and Salesforce does not provide support for it. Workbench is referenced here for illustrative purposes only. Use it at your own discretion.
000382207

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.