All templates

Automated OneDrive Recycle Bin Monitoring

Every morning, WebRun opens the OneDrive recycle bin, lists what was deleted since the last run with the folder it came from and how many days remain before it is purged, posts the list to Microsoft Teams, and texts you by Twilio when something important is about to pass the restore window.

Runs on WebRun · Strict Lockdown policy
Every day at 8:00 AM WebRunorchestrates each step
1 OneDrive read the recycle bin
2 Microsoft Teams post what was deleted
3 Twilio text before the window closes
In short

How do I catch an accidental OneDrive deletion before it is purged?

WebRun opens the OneDrive recycle bin every morning and lists what was deleted, the folder it came from, and how many days remain before it is purged. It posts the list to Microsoft Teams and texts the owner by Twilio when something on your watch list is close to the deadline.

  • An accidental delete is caught while it can still be restored
  • A whole folder emptied at once is spotted the next morning
  • Owners are texted only when their own files are near the deadline

Built for IT admins · operations managers · small business owners · shared drive owners

Step by step

What does WebRun do on every run?

The exact actions WebRun takes, in order - in plain language, so you can adjust anything.

  1. WebRun signs in and gets to work

    Opens onedrive.live.com in a real browser with your saved login - no setup, no API keys.

  2. 1
    OneDrive - read the recycle bin
    onedrive.live.com
    WebRun in OneDrive: read the recycle bin
    WebRun opens OneDrive to read the recycle bin.
    • Open OneDrive and go to the recycle bin
    • List the items deleted since the last run with their name, size, and original folder
    • Read the deletion date on each item and work out the days left before it is purged
    • Group items deleted together, since a whole folder emptied at once is the risky case. WebRun never empties the bin or permanently deletes anything

    Done when Every item in the bin is listed with its origin folder and days left to restore.

  3. 2
    Microsoft Teams - post what was deleted
    microsoft.com
    WebRun in Microsoft Teams: post what was deleted
    WebRun opens Microsoft Teams to post what was deleted.
    • Post the day's deletions to your team channel, closest to purging first
    • Show the file name, the folder it came from, and the days remaining
    • Highlight any batch where many files from one folder went at once
    • Leave the restore itself to a person, who can do it in one click in OneDrive

    Done when The channel has today's deletions ranked by how little time is left.

  4. 3
    Twilio - text before the window closes
    twilio.com
    WebRun in Twilio: text before the window closes
    WebRun opens Twilio to text before the window closes.
    • Text the file owner only when an item matching your watch list is close to the end of its restore window
    • Include the file name, the folder, and how many days are left
    • Keep the recipients to the internal owners you configured
    • Send nothing on a day where nothing important is near the deadline

    Done when Anything important and close to purging has triggered a text to its owner.

Run settings

How is each run configured?

Starting pageWhere Chrome opens at the start of each run
onedrive.live.com
ScheduleRuns automatically on this cadence
Every day at 8:00 AM
DeliveryHow each run's result reaches you
Deletion watch · Microsoft Teams
OutputWhat each run produces - Today's deleted items with the folder each came from, when it was deleted, and the days remaining before it can no longer be restored.
Text
Setup & safety

Secure by default

Connect once, stays signed in

WebRun signs in once and keeps each session in a persistent environment, so every run picks up right where it left off.

Your credentials stay in your own private environment - WebRun never stores your passwords.
Strict Lockdown

Every action is checked against this policy before it runs.

Domains ALLOWLIST
Typed input ALLOW
Shell command BLOCK
File uploads BLOCK
Runs in a contained environment More on policies
Good to know

Questions, answered

Will it restore or delete files by itself?

No. WebRun only reads the recycle bin and reports. It never restores an item, never empties the bin, and never permanently deletes anything, so the decision to bring a file back stays with a person.

How do I decide what counts as important?

Give it a watch list once, such as folders, file types, or name patterns that matter. Anything matching triggers a text near the deadline while everything else stays in the daily Teams post.

What if someone empties a whole folder?

Items deleted in the same batch are grouped and called out together, so a folder emptied by accident is obvious in the post rather than lost among single files.

Put this on autopilot.

Turn it on in minutes - or have our team set it up for you.