Delete records where an ISO 8601 date is earlier than today (text comparison)

Say goodbye to old records without lifting a finger. Your database stays fresh—automatically.

  • Execute the task periodically
  • Convert date/time (datetime → convert)
  • Delete items from a database (btzlistpku → delete_where)

Outdated records with expired dates are cluttering your databases and stealing your focus every day. Manually sifting through records to compare ISO 8601 dates, finding old entries, and deleting them is tedious, error-prone, and a massive time drain—especially as your data grows. If you don't automate this process, you risk losing insights in the noise, making decisions with stale information, and wasting countless hours that could be spent on more valuable work.

This formula streamlines everything: it automatically generates today’s date in ISO 8601 format matching your timezone, scans your Botize database at regular intervals, and permanently eliminates every record where the date field is older than the current day using bulletproof text-comparison logic. No more manual exports, import cycles, or stressful clean-ups. Whether you want this done every hour or at a custom frequency, the automation’s flexible setup lets you specify the database, the field you want checked, and precisely when it runs. You move from frustrating, risky, hands-on data hygiene to reliable, invisible, automatic cleanup—your database stays fresh and decision-ready.

Ready to let Botize handle the data-drudgery and keep your records current on autopilot? Follow the simple step-by-step to tailor everything from timing to target fields—or jump straight in with this formula, already preconfigured and ready for your first run. Click through, set your preferences, and see your database transform—without lifting a finger.

Automate this task with 3 simple prompts

Copy and paste the following prompts into Botize's AI task editor

  1. 2

    Select the AI editing tool.

    AI Prompt Tool
  2. 3

    Let's begin by scheduling when this automation should run.

    Copy and paste this prompt into the AI editing tool.

    Set the automation to run automatically every hour.

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  3. 4

    Now, we need to get today's date in the ISO 8601 format (YYYY-MM-DD) for our time zone.

    Copy and paste this prompt into the AI editing tool.

    Add a step to generate today’s date in ISO 8601 format (YYYY-MM-DD), making sure it matches our local time zone.

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  4. 5

    Finally, let's remove outdated records using the date we've obtained.

    Copy and paste this prompt into the AI editing tool.

    Add a step to delete records from your selected database where the value in a certain text field, which contains a date in ISO 8601 format, is earlier than today’s date. Make sure to specify the database, the name of the date field, and use lexicographic comparison to check which records should be deleted.

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  5. 6

    Your automation is ready to use. Click the 'Save changes' button.

    Save changes

Auto-Cleanup: Your Outdated Data, Gone Instantly

Here’s how it works: this automation checks every hour, compares each record’s date to today, and erases anything that’s fallen behind. Just tell us your time zone, the database you want to tidy, and where your dates sit. That’s it! No more endless scrolling. No second-guessing. And zero accidental misses.

Manual Botize
Open your database and search for outdated records 10 minutes 0 Minutes
Manually select and delete each entry 15 minutes 0 Minutes
Double-check you didn’t miss anything 5 minutes 0 Minutes
Total 30 minutes every single day 0 Minutes

Tired of cluttered, outdated data? You're in the right place. This automation finds and deletes records with dates older than today, so you never have to do it manually again.


Expired Leads Wiped Automatically

You run a CRM and want dead leads to disappear once their expiry date passes—no more manual filtering.

Effortless Freshness

Your database updates itself, no interventions needed.

Total Peace of Mind

No more worrying about forgotten leftovers or messy data.

Save Real Time

Spend seconds setting up, save hours every week.


Old Bookings Vanish On Their Own

You host workshops or events and want completed bookings cleared every night, so your list is always current.

🧹

⌾︎ You manage lists, bookings or deals that expire or go out-of-date.

⌾︎ You want a clutter-free database without babysitting it every day.

📚

✕ You never delete anything, ever.

✕ You track events or records that must always be historically archived, no exceptions.


✓ Set the frequency of the cleanup—every hour, or once a day; you decide.

✓ Choose any text field in your table that’s formatted as a date. Total control.

✓ Configure which timezone you want—we won’t get it wrong, even if you travel.




This automation generates the current date in ISO 8601 format (YYYY-MM-DD) and deletes records from a Botize database where a text field contains a date in the same format that is earlier than today (lexicographic comparison). Within the task, you must specify your time zone, the database to act on, and the name of the field that already contains dates in ISO 8601 format. Use this automation with caution, as it permanently deletes records.

Related automations