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

SOQL for recycle bin size in GB, MB

Hello, has anyone tried to calculate the size in recycle bin as in MB, GB? - not soql to count the rows. If you have soql ready, can you share?
VinayVinay (Salesforce Developers) 

Records in the Recycle Bin don’t count against your org’s storage usage. However, Salesforce uses your storage limit to determine the maximum number of records allowed in your Recycle Bin. Your Recycle Bin can contain 25 times your MB storage capacity as records. For example, an org with a storage allocation of 2,000MB (2GB) can have 50,000 records in the Recycle Bin: 25 x 2,000 = 50,000 records.

Please review below link for more information. (

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Vinay Kumar
AbhishekAbhishek (Salesforce Developers) 
Hi K V,

Those are in MB.

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.