You need to sign in to do that
Don't have an account?

Where could I get information of the records deleted from the recycle bin?
Hi there,
I am trying to retrieve all records only in the recycle bin, and I learnt from the forum that they can be selected by IsDeleted=true, but the problem is that those records hard delected from the recycle bin (which means they actually do not exist in the org any more) are still marked as IsDeleted=true.
Could any expert help find a way to rule them out? Or would anyone know the object name of the recycle bin if there is one?
Many thanks and best regards,
Stellar
I am trying to retrieve all records only in the recycle bin, and I learnt from the forum that they can be selected by IsDeleted=true, but the problem is that those records hard delected from the recycle bin (which means they actually do not exist in the org any more) are still marked as IsDeleted=true.
Could any expert help find a way to rule them out? Or would anyone know the object name of the recycle bin if there is one?
Many thanks and best regards,
Stellar
It is possible to hard delete using DataBase.emptyRecycleBin method in the Batch class. Create a sample Batch class as mentioned below and use DataBase.emptyRecycleBin method in the Batch class.
Please refer below link for more information.
http://salesforce.stackexchange.com/questions/22875/how-do-i-delete-records-in-the-recycle-bin
Please accept my solution as Best Answer if my answer was helpful. It will make it available for other as the proper solution. If you felt I went above and beyond, you can give me kudos.
Thanks and Regards
Sandhya
All Answers
This blog (http://www.asagarwal.com/762/how-to-recover-data-undelete-undo-in-salesforce) will help you reach your destination.
Also, you cannot use the ALL ROWS keywords with the FOR UPDATE keywords.
It is possible to hard delete using DataBase.emptyRecycleBin method in the Batch class. Create a sample Batch class as mentioned below and use DataBase.emptyRecycleBin method in the Batch class.
Please refer below link for more information.
http://salesforce.stackexchange.com/questions/22875/how-do-i-delete-records-in-the-recycle-bin
Please accept my solution as Best Answer if my answer was helpful. It will make it available for other as the proper solution. If you felt I went above and beyond, you can give me kudos.
Thanks and Regards
Sandhya
Or Can I get information on which records are hard deleted? I only need their ids, instead of restoring them.
Thanks anyway.
Best regards,
Stellar