Google-Drive-BULK-Access-remover
Automatically removes specified email addresses from ALL Google Drive files accessible by your account. Because manually removing ex-employees from hundreds of files is not how you want to spend your Friday evening.
AI Summary
Google Drive Email Access Remover
Bulk-remove specified emails from Drive via GAS
Target Users
Intermediate developers building internal GAS tools to automate ex-user permission cleanup
Problems Solved
Ex-user emails linger across many Drive files; manual removal is impractical
Tags
Main Features
Smart search
Finds only files shared with target emails using Drive API queries
Bulk processing
Process multiple emails in one run with batched execution
Time management
Stops before 6-min limit and auto-resumes to continue long runs
Safety features
Protects your own access and gracefully handles permission errors
Status & reports
Status checks and detailed email reports for clear outcomes
Usage Examples
Quick start (from README)
After adding the Drive API service, set target emails and run.
// Set emails to remove from shared files
const TARGET_EMAILS = [
'former.employee@company.com',
'freelancer@example.com'
];
// Verify setup and connectivity
runDiagnostics();
// Start the cleanup (auto-resumes between runs)
startEmailCleanup();
// Check current progress (email in progress, files processed, etc.)
checkStatus();