+ 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.

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.

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.