function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

IsDeleted field in objects

While creating custom object, I have observed IsDeleted field, which is neither standard field nor custom field.

When I delete the records of that custom object. All deleted records goes into recycling bin. But Recycling Bin shows only latest 5000 records. What about older deleted records. SFDC db keep those records?


I also want to retrieve records, but from recycling bin I can undelete only last 5000 records.  Is there any way?


Also this SOQL:  SELECT Id, isDeleted FROM MyObj__c WHERE isDeleted = true ALL ROWS is not working on my IDE.


Any help would be appreciated