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
K VK V 

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) 
Hi,

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.

https://help.salesforce.com/articleView?id=home_delete.htm&type=5 (https://help.salesforce.com/articleView?id=home_delete.htm&type=5)

Hope above information was helpful.

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

Thanks,
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.

Thanks.