I'm querying deleted records in a query like below

Select Id, Name from Lead where isdeleted = true ALL ROWS

Records hard deleted from recycle bin using emptyrecyclebin() call still coming in the above query results. I read in different articles that Salesforce removes them in some time.

Is there any field filter available, that I can use in the above query to stop hard deleted records coming in the query results ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.