Skip to content

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.

Paste it into your assistant. It tells you what it will send or change before it runs live.

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

  1. Every day ClickRuntime checks how much of your Google Drive storage is used.

  2. It compares that with your limit of 90% full.

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

RunsDaily
Get warned before Drive runs out of spacetoday, 9:00Succeeded
Email · Google Drive is 93% fullUsing 13.9 GB of 15 GB (1.2 GB in trash).

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • 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

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
storage_quota_alert.pyexample
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?
Google counts Drive, Gmail and Google Photos against the same storage total, and the figure the check reads is that combined number. So the alert fits whether the space is used by files, email attachments or backed-up photos.
What threshold should I choose?
Most people pick 80 to 90 percent. Choose lower if you add large files in bursts, such as video, because a fast jump can take you from 85 percent to full within a day. You can also add a second, stricter alert at 95 percent.
Can it warn me about a Google Workspace account with pooled storage?
It reads the quota of the connected account. In a Workspace with pooled storage the limits are managed by the admin, so the number it reports may be the organization's allowance. Check how your admin has configured storage before relying on the percentage.
What permissions does it need?
read (drive.metadata.readonly). Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run each time it runs (daily). Checks that find nothing to do and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

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.