📄

Cleanup & Unshare Scripts

DriveNest never deletes or modifies your files. Instead, it generates scripts that you review and run yourself. Full control, zero surprises.

The core principle

DriveNest is a read-only analysis tool. It will never delete files, revoke sharing, or modify your Drive automatically. Every action is expressed as a script that you can review line by line before executing. This design means you are always in control.

Three script formats

Choose the format that fits your workflow. Google Apps Script can be deployed directly to your Google account with one tap — DriveNest creates a new Apps Script project with the Drive API pre-configured. Bash scripts use the Google Drive CLI tools and run on macOS or Linux. PowerShell scripts work on Windows. All three do the same thing; the format is your choice.

Two actions

Cleanup scripts move selected files to Google Drive trash. Trashed files remain recoverable for 30 days before permanent deletion. This gives you a generous safety window if you change your mind. Unshare scripts revoke specific sharing permissions — remove individual users, disable link sharing, or restrict access on shared folders.

How Apps Script deployment works

  • One-tap deployment — DriveNest creates an Apps Script project in your Google account
  • Drive API pre-configured — no manual setup required
  • You run it manually — open the project in Apps Script and click Run
  • Full source visible — review every line before execution
  • Trash, not delete — cleanup scripts move files to trash (30-day recovery window)
  • Permission-specific — unshare scripts target exact users and access levels

Auto-cleanup for subscribers

Ultimate subscribers can enable auto-cleanup. When combined with scheduled background scans, DriveNest automatically generates and deploys cleanup scripts for files that are confirmed safe to remove — verified duplicates with high confidence scores. The scripts are deployed to your Apps Script account automatically, but you still need to run them manually. This keeps your Drive clean with minimal effort while maintaining full control over what gets removed.

Subscription advantage

Scheduled background scans keep your scan data fresh without manual effort. Auto-cleanup takes it further by automatically preparing scripts for confirmed safe duplicates. You stay in control — scripts are deployed but never executed without your action.