
Completed
Posted
Paid on delivery
I need a small script that signs in to my Gmail account every five minutes and wipes everything sitting in the Spam and Trash labels. It will run on a Windows machine that stays on 24/7, so feel free to lean on Task Scheduler or a bundled loop/timer—whatever keeps the five-minute cadence consistent. Language choice is yours; pick whatever you are most comfortable with so long as it runs reliably on Windows and can authenticate with Gmail (OAuth 2.0, service account, secure saved token, etc.). I do not need post-run notifications, logs, or dashboards—just silent, automatic cleaning. Acceptance criteria • Script authenticates once and refreshes tokens automatically without manual intervention. • Every 5 minutes it empties both Spam and Trash; no other folders touched. • Runs error-free for at least 24 hours in my test environment. • Delivered with a brief README covering prerequisites, setup, and how to change the interval if ever needed. Send the finished script plus the setup notes and I’ll test it right away.
Project ID: 40603693
112 proposals
Remote project
Active 7 days ago
Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

Hi there, To automate the cleaning of your Gmail, I can create a script that authenticates using OAuth 2.0 and runs every five minutes to erase all emails in the Spam and Trash folders. It will operate silently without notifications, as you specified. Additionally, I’ll ensure that it refreshes tokens automatically to maintain a seamless experience without any manual intervention. I will also provide a brief README covering the setup and how to modify the interval as needed. Your satisfaction is my priority and I guarantee that I will deliver you a high-quality result. Regards, Ali
$250 USD in 7 days
6.2
6.2
112 freelancers are bidding on average $404 USD for this job

Hi, I see how keeping your Gmail tidy automatically is important to prevent clutter from Spam and Trash piling up. I’ve seen many users struggle with tedious manual clearing, especially when their inbox is busy. Automating this cleanup smoothly can save a lot of time and keep your account neat without daily effort. I will develop a simple script in Python that logs into your Gmail securely using OAuth 2.0, then runs every five minutes to clear out Spam and Trash folders. The script will handle token refreshes automatically, so no manual login will be needed after setup. It will keep your account clean silently in the background, all while respecting your no-logs preference. I will also prepare a straightforward README explaining how to set it up, change the interval, and ensure it runs reliably on Windows with Task Scheduler. Clear communication, quality code, saving you time, and supporting your needs are my priorities. After delivery, I’ll be here to help you troubleshoot or make adjustments, aiming to help your account stay tidy effortlessly. Did you consider how your script will handle potential errors like API changes or token expiry that might disrupt the running? Let's discuss a plan to keep this working smoothly long-term and maybe add some extra features down the line. Regards, Nick.
$250 USD in 3 days
8.4
8.4

I will build a Windows-ready Python script that authenticates to Gmail through the official Gmail API using OAuth 2.0. On the first run, you will authorize the account once; the script will securely store the refresh token and renew access automatically without requiring repeated sign-ins. It will run every five minutes through Windows Task Scheduler, search only the Spam and Trash labels, paginate through all matching messages, and permanently delete them. No other Gmail folders or messages will be modified. The script will be designed for silent 24/7 operation with safe handling for expired tokens, empty labels, API pagination, temporary API failures, and overlapping scheduled runs. I will also include a concise README covering Google Cloud API setup, OAuth consent configuration, token initialization, Task Scheduler installation, and changing the five-minute interval. I can provide the finished script quickly and use the remaining delivery time to verify its behavior in a 24-hour test scenario, including confirming that only Spam and Trash are affected. Can you confirm this will run against one Gmail account on the Windows machine? Muhammad Saad
$250 USD in 2 days
7.3
7.3

Hi, I'm a senior developer with 20+ years of experience building automation scripts and API integrations, and I've delivered similar Gmail cleaning solutions before. I'll write a Python script using the Gmail API with OAuth 2.0 authentication, storing a refresh token locally to avoid re-authentication. It'll run on a 5-minute loop via Task Scheduler, emptying Spam and Trash labels without touching other folders. The script will include error handling for failed API calls and network issues to ensure reliability. You'll receive a README with setup steps, prerequisites, and interval adjustment instructions. I can start immediately.
$300 USD in 3 days
7.1
7.1

A small, silent script that empties your Gmail Spam and Trash every five minutes on a Windows box is a quick, clean job for me. I'd build it in Python using the official Gmail API with OAuth 2.0 — you authenticate once, then a saved token refreshes automatically with no further prompts. It'll call the API's batch-delete on the SPAM and TRASH labels only, leaving every other folder untouched, and I'll set the 5-minute cadence via Windows Task Scheduler (with an internal loop option if you prefer), so it survives reboots and runs error-free unattended. You'll get the script plus a short README covering setup, the Google Cloud credentials step, and how to change the interval. Send me the go-ahead and I'll start right away.
$250 USD in 1 day
7.1
7.1

I can build this as a lightweight Windows-ready Gmail cleanup script that silently empties only Spam and Trash every 5 minutes. I’d use a reliable OAuth-based flow with token refresh so you won’t need to keep signing in manually. I’ll also include a short setup guide showing prerequisites, first-time auth, and how to change the interval later. The scope is clear, so I can turn this around quickly.
$250 USD in 7 days
7.4
7.4

My Specialization: Python, Gmail API, OAuth 2.0, Windows Automation, Task Scheduler, Google Workspace APIs I will develop a secure Gmail API automation script using OAuth 2.0 that runs on Windows, refreshes tokens automatically, and empties only the Spam and Trash folders at your chosen interval. Let's discuss and go ahead. I am available immediately. Once you inbox me, I will also show you my related work samples. Awaiting your response. Regards
$500 USD in 7 days
6.9
6.9

Gmail Auto-Clean Script Needed there , i have already build this script do you have to for review , lets talk
$880 USD in 4 days
6.7
6.7

Hi, your "Gmail Auto-Clean Script Needed" project is right in my wheelhouse. I build modern JavaScript apps end to end — React/Vue/Next on the front and Node/Express on the back, in TypeScript where it helps. Working with javascript, python, software development, oauth, scripting, automation, api integration, bash, I focus on responsive, fast UIs, clean component structure, and reliable APIs — no page-builder shortcuts. I can lock down the scope and key flows first, then ship in reviewable increments. Can we hop on a quick chat to align on your requirements? ⭐ 5.0/5 from a recent client: "Project was delivered before Time with Best professional Knowledge One could ever held. Thanks for the support" Final timeline and cost will be confirmed in chat after a complete understanding and documentation of the project expectations in detail.
$562.50 USD in 8 days
6.5
6.5

As a full-stack software development team, Web Crest specializes in API integration and automation - skills that are highly relevant to your project. We understand the importance of having a reliable, efficient system in place to keep your Gmail account tidy and organized. With our expertise in Python and windows-based systems, we can create a robust script that will automatically clean your spam and trash folders every five minutes consistently. Having served several clients across different industries, we have a proven track record of delivering solutions that not only meet but exceed their expectations. We always strive for perfection while maintaining a business focus. With this project, you can expect an error-free script that performs exactly as intended throughout the 24-hour test period in your environment. Additionally, we understand the value of clear documentation for seamless use and maintenance of any script or software. Therefore, along with the completed script, we will provide concise README notes outlining any pre-requisites and setting up steps. Plus, we'll ensure it's easy for you to adjust the interval should you need to in the future. So let's partner together towards digital transformation; choose Web Crest
$250 USD in 1 day
6.5
6.5

Hi, This is a straightforward automation task where the main challenge is reliable OAuth 2.0 token handling and silent, consistent execution on Windows. I’ve built similar background cleaners before, where the trickiest part was avoiding rate limits while keeping the auth token fresh. I’ll write this in Python using the Gmail API client library, since it handles token refresh automatically and runs cleanly on Windows. The script will use a simple loop with a 5-minute sleep, but I’ll wrap it in a try/except to catch and log any API errors without crashing. You’ll get a clean README with setup steps and a commented interval variable—no extra noise. The goal is a hands-off solution that just works and doesn’t need your attention after setup. Let me know if you want to tweak anything before I start right now. Thanks, Denis
$400 USD in 5 days
6.3
6.3

Hi there, I've reviewed your requirements and can build a lightweight, reliable Windows automation that securely authenticates with Gmail via OAuth 2.0, automatically refreshes tokens, and permanently empties only the Spam and Trash folders every 5 minutes without affecting any other mailbox data. My approach is to use the Gmail API with a secure local token, ensuring one-time authentication followed by automatic token refresh. The script can run through Windows Task Scheduler (recommended for reliability) or as a lightweight background service. I'll implement robust error handling so temporary connectivity or API issues don't interrupt future runs, while keeping the solution simple, silent, and easy to maintain. Deliverables include the complete source code, setup guide, OAuth configuration instructions, scheduled execution configuration, and a concise README explaining prerequisites and how to adjust the execution interval if needed. Could you please confirm whether you want the script to permanently delete all messages currently in Spam and Trash every 5 minutes, or should it only remove messages older than a certain age? I'm available to start immediately and can deliver a tested solution promptly. Warm Regards, Aneesa.
$250 USD in 2 days
6.3
6.3

Hi there, I understand you need a small, autonomous script for your Windows machine. It will operate in the background, waking every five minutes to connect to your Gmail account via the API. It will then systematically find and permanently delete all messages within the Spam and Trash labels before going dormant. The process, including OAuth 2.0 token refreshes, will be fully automated and silent. Technical approach: I'll write this as a Python script using the Google API client library. It will rely on a locally stored refresh token for non-interactive OAuth 2.0 authentication. The five-minute cadence will be managed by Windows Task Scheduler as you suggested. Core modules: The script will contain three main parts: authentication logic to manage and refresh the API token, a task execution function to target and clear messages in the 'SPAM' and 'TRASH' labels, and the scheduling configuration to ensure the five-minute execution cadence. Relevant systems: We've built several systems that integrate with the Gmail API for automated workflows (e.g., our AI Sales Assistant), handling the exact same OAuth 2.0 lifecycle and API interactions required for this task. I will provide a single Python script and a brief README covering the one-time setup for API credentials and clear instructions for deploying it with the Task Scheduler for 24/7 operation. Regards, Rohit
$250 USD in 1 day
6.6
6.6

Hi. To keep Gmail clean on a 5-minute cadence, I’ll build a lightweight Windows-ready script that authenticates once with Gmail API OAuth 2.0, stores a secure refresh token, and silently purges only Spam and Trash on schedule. I’d use Python with google-api-python-client, a small retry-safe loop or Windows Task Scheduler, and a simple config-driven interval so the timing stays consistent. The flow stays minimal: token bootstrap, mailbox-specific delete calls, and clean handling for token refresh without touching any other labels. As a Senior Backend Engineer, I have mastered Python, Gmail API, OAuth 2.0, and Windows automation, and have strong experience in scheduled maintenance scripts and API integrations. I build these utilities to run unattended and stay stable under long test windows, which matches your 24-hour acceptance check. I am sure I can deliver high-quality results within a short timeline. Let’s get in touch and discuss more. Thanks.
$320 USD in 3 days
6.0
6.0

Hello There! I’m Md Toriqul Islam, and I’m excited to partner with you. I can dive into your project immediately. With over 10 years of experience in Python automation, Windows scripting, and Google API integrations, I build reliable automation tools for everyday workflows. I understand you need a Windows script that securely authenticates with Gmail, automatically clears Spam and Trash every five minutes, refreshes OAuth tokens without manual intervention, and runs reliably 24/7. I will provide clean, well-documented code along with a simple setup guide and configurable scheduling. I am skilled in Python, Google Gmail API, OAuth 2.0, Windows Task Scheduler, automation scripting, and API integration. I’m ready to start immediately and would be happy to discuss your project. Looking forward to hearing from you. Best regards, Md Toriqul Islam
$250 USD in 5 days
5.9
5.9

Hello, I’ve gone through your project details and this is something I can definitely help you with. I have 10+ years of experience in mobile and web app development, working with Flutter, Android, iOS, React, Node.js, and APIs. I focus on clean architecture, scalable code, and clear communication to ensure the project runs smoothly from start to finish. I will first review your requirements, suggest the best technical approach, and then proceed with development while keeping you updated at every stage. Here is my portfolio: https://www.freelancer.in/u/ixorawebmob I’m interested in your project and would love to understand more details to ensure the best approach. Could you clarify:Could you provide more details on your preferred programming language for the script? 1. Do you need this for mobile, web, or both? 2. Do you already have UI/UX designs or should we create them? 3. Will there be any third-party API or payment gateway integration? 4. What is your expected timeline for completion? 5. Are there any reference apps or websites you like? Let’s discuss over chat! Regards, Arpit Jaiswal
$250 USD in 25 days
5.4
5.4

Hello, Script with setup notes is READY JUST SEND ME A MESSAGE I reviewed your requirements carefully and understand that you need a lightweight Windows script that automatically empties only the Gmail Spam and Trash folders every 5 minutes using secure OAuth 2.0 authentication, without affecting any other labels or requiring repeated logins. My approach is to use Python with the Gmail API and OAuth 2.0. The script will authenticate once, securely store the refresh token, automatically renew access tokens when needed, locate messages in the Spam and Trash labels, permanently delete them, and run every 5 minutes via Windows Task Scheduler (or as a background loop if you prefer). The project will include clean, well-documented code, a README with setup instructions, OAuth configuration, and guidance for changing the execution interval. One technical question: Will the script run under a single personal Gmail account, or do you need support for multiple Gmail accounts in the future? I can start immediately and deliver a fully tested solution that meets your 24-hour reliability requirement. The quoted price is an initial estimate and can be adjusted after reviewing the final setup requirements. Best Regards
$250 USD in 2 days
5.4
5.4

Hi, I can build a script that signs into your Gmail account every five minutes and automatically empties only the Spam and Trash labels. It will authenticate once using OAuth2 with automatic token refresh and I will deliver the finished script plus a brief README covering prerequisites, setup, and how to change the interval. I previously built a Python Gmail cleanup service using OAuth2 that ran unattended for 30 days. Do you prefer Python or Node? Happy to jump on a quick chat. Ali Zain
$500 USD in 7 days
5.3
5.3

Hi, As a seasoned software developer with over 15 years of experience, I meet and exceed all of your project's prerequisites in terms of skills, language choice, and platform know-how. Moreover, my vast knowledge of Python and JavaScript aligns perfectly with the preferred languages for your project. I have a comprehensive understanding of how to use Task Scheduler on Windows machines to ensure a reliable, uninterrupted script that runs on the specified five-minute cadence. What sets me apart is my adaptability and ability to produce efficient code under time constraints while prioritizing reliability. My lengthy experience in system design and backend development means I will be able to create an effective script that combines quick but secure authentication with OAuth 2.0 to ensure continuous token refreshing without any manual intervention. On top of all those credentials, I pride myself on delivering thorough documentation such as the brief README you specified to detail setup instructions for your future reference. With my skills and dedication, I am confident not only in fulfilling your acceptance criteria but also in providing you with a solution you can rely on for error-free operation over extended periods of time. All in all, choosing me guarantees expertise, efficiency, reliability, and ultimately your satisfaction. So let's get started!
$500 USD in 7 days
5.3
5.3

Hi there, we are a team of Full Stack Web and Mobile App developers and we can do this project in no time. Thanks Ashish Kumar.
$500 USD in 7 days
5.4
5.4

Hello I am python expert I can create a Task Scheduler script that will clean the gmail. I have 13 years of experience specializing in enterprise-grade Laravel, PostgreSQL, and React JS architectures. Proven track record of designing high-concurrency systems (HRMS), cloud-native infrastructures, and advanced Python-driven computer vision/AI workflows for global clients. Expert at bridging the gap between core web ecosystems, real-time machine learning implementations, and mobile biometric systems. A strategic problem-solver recognized for rapidly adapting to emerging technologies and delivering high-performance, scalable code.
$250 USD in 3 days
5.4
5.4

Rapid City, United States
Payment method verified
Member since Jul 25, 2026
₹750-1250 INR / hour
$5000-10000 USD
₹12500-37500 INR
min $50 USD / hour
₹600-1500 INR
₹1500-12500 INR
$30-250 CAD
₹1500-12500 INR
$30-250 USD
₹600-1500 INR
₹12500-37500 INR
₹400-750 INR / hour
$10-30 CAD
₹600-1500 INR
₹1250-2500 INR / hour
$8-15 USD / hour
₹1500-12500 INR
$250-750 USD
$30-250 USD
$30-250 USD