Reputation: 21715
Could someone give me an example how I can retrieve the currently used storage quota of a Google Drive account and use that information inside a Google Script?
Upvotes: 0
Views: 422
Reputation: 5163
From Apps Script you can use DriveApp.getStorageLimit()
to get the total storage space and DriveApp.getStorageUsed()
to get the used storage space.
References:
Upvotes: 1