orschiro
orschiro

Reputation: 21715

Retrieve Google Drive account storage quota in a Google Script?

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

Answers (1)

CMB
CMB

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:

DriveApp | getStorageLimit()

DriveApp | getStorageUsed()

Upvotes: 1

Related Questions