I ran an export all on event records that returned about 7 million records. The export timed out around the 6 million mark. I went ahead and ran a hard delete on the 6 million records which ran successfully. I know many of the records were already in the recycle bin, but I want to clear them out of the org. I ran a query to check the count of the remaining event records which did correctly return approximately 1 million records remaining in the system.
I also checked the data storage and it correctly showed a significant drop in the event records with about 1M left. However, I went back to dataloader to export all the remaining event records and it keeps showing that it is exporting the full 7 million records? Is dataloader somehow retrieving cached records? I don't see how it is retrieving the 7 million records when the org correctly shows that those have been hard deleted? I should only be able to export the 1M records that are left in the system.
I cannot identify where these records are coming from. Are the 7 million records somehow queued for deletion and dataloader still is seeing them? Or is there some other issue going on?
isDeleted = false
in the query. help.salesforce.com/…