Daily
Get warned before Drive runs out of space
You get an email when your Drive storage passes 90%, once each time it crosses.
- Runs
- Daily
- Apps
- Google Drive
- AI
- Not needed
- Access
- read (drive.metadata.readonly)
Send this to your assistant
Create a ClickRuntime automation: every day, check my Google Drive storage and email me if it's over 90% full.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A design studio stores raw footage, client assets and email attachments in one Google account. One Tuesday the storage fills up, new emails stop arriving, and uploads fail with a quota error right when a client file is due. The usual cause is slow growth nobody watches: shared folders, large video exports and Gmail attachments all count towards the same limit, so there is no single moment that feels like a warning.
Once a day, ClickRuntime reads your storage quota from Google, works out how much of it you have used and compares it with the threshold you chose, such as 85 percent. When you cross it, you get one alert with the used and remaining space. It does not repeat the warning until usage has dropped and crossed again.
It is particularly worth having on accounts shared by a small team or used for shared mailboxes.
What you get out of it
Mail keeps arriving
When Google storage is full, incoming Gmail can be rejected. A warning at 85 percent gives you days to free up space, instead of learning that clients' messages bounced for a week.
Time to choose what to delete
An alert well ahead of the limit lets you review large files calmly and archive what you can. Doing it under pressure means deleting the wrong things or paying for a plan upgrade on the spot.
A growth trend you can act on
Each alert shows usage against the limit, so repeated crossings reveal whether you are creeping up or spiking. That helps you decide between cleanup and buying more storage. That context makes the upgrade decision easier to justify.
No interruption during deadlines
Failed uploads happen at the worst times, such as the evening a deliverable is due. Avoiding the quota wall removes a whole category of last-minute emergencies for the whole team.
One notice per crossing
Because the alert is sent once when the threshold is passed, it stays meaningful. People are far more likely to react to a rare message than to a daily reminder they have learned to ignore.
How it works
What happens, step by step
Every day ClickRuntime checks how much of your Google Drive storage is used.
It compares that with your limit of 90% full.
If you are over the limit, you get an email with how much space is used, the total available and how much is sitting in the trash.
Before it runs live
- Connect Google Drive
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Run it at a different time, more or less often, or only on weekdays
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other Google Drive steps into one automation
Under the hood
The code that runs this automation
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, notify
@on_trigger
def run(event):
drive = build("drive", "v3", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
quota = drive.about().get(fields="storageQuota").execute()["storageQuota"]
used, limit = int(quota["usage"]), int(quota.get("limit", 0))
if not limit:
return {"unlimited": True}
pct = used / limit * 100
if pct > 90:
notify.email_me(f"Google Drive is {pct:.0f}% full",
f"Using {used / 1e9:.1f} GB of {limit / 1e9:.0f} GB ({int(quota['usageInDriveTrash']) / 1e9:.1f} GB in trash).")
return {"percent": round(pct, 1)}FAQ
Common questions
Does the quota include Gmail and Photos, or only Drive?
What threshold should I choose?
Can it warn me about a Google Workspace account with pooled storage?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Back up your data to Drive every night
Each night your data is saved to a dated Drive folder, and backups older than 30 days go to trash.
See how it worksKeep your uploads folder sorted
New files get a dated name and move into folders by type, and duplicates are reported to you.
See how it worksArchive a website to Drive as Markdown
Each page of a site is saved in Drive as a Markdown file you can read or reuse.
See how it worksKeep exploring
Set up “Get warned before Drive runs out of space” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.