Skip to content

Delete archived dispatch records older than 30 days

Automatically detect dispatch records older than 30 days across Zapier Tables. Automatically delete records when cutoff dates match, records qualify, or archive items exceed 30 days—so you can remove old data, keep the archive compact, and avoid manual retention cleanup.

How this automation keeps your archive compliant

When the daily schedule reaches the 12:00 AM run time, old dispatch records can linger and expand your archive. This automation computes a 30-day cutoff, finds matching records, and deletes them in Zapier Tables—so your team can stay compliant without manual cleanup.

  1. 1.Detects daily cutoff run time

    Integrate Schedule by Zapier and scheduling tools to start the workflow at 12:00 AM local time to trigger retention cleanup.

    Schedule by Zapieror swap with your favorite app
  2. 2.Computes the 30-day cutoff date

    Integrate Formatter by Zapier and date tools to compute a cutoff date by subtracting 30 days to standardize retention matching.

    Formatter by Zapieror swap with your favorite app
  3. 3.Finds records in the archive table

    Integrate Zapier Tables and database search tools to look up records where the configured date equals the cutoff to retrieve matching record IDs.

    Zapier Tablesor swap with your favorite app
  4. 4.Stops when no records match

    Integrate Filter by Zapier and workflow conditions to continue only when Tables returns IDs to exit cleanly on no matches.

    Filter by Zapieror swap with your favorite app
  5. 5.Loops through each matching record ID

    Integrate Looping by Zapier and iteration tools to process each returned record ID individually to ensure per record deletion.

    Looping by Zapieror swap with your favorite app
  6. 6.Deletes matched archive records

    Integrate Zapier Tables and record deletion actions to delete each looped record ID from the archive table to remove outdated dispatch data.

    Zapier Tablesor swap with your favorite app

Automate your work, your way

Build custom automations across your tools in minutes. Describe what you need, connect your apps, and create workflows without the manual effort.

Start with Copilot

Trusted by 3.4 million companies

Calendly
Okta
Zendesk
Dropbox
Asana
Allstate
Airbnb
ActiveCampaign
Lyft
Webflow
Canva
Sysco
LA Clippers
Getaround
Grammarly
HelloFresh
Lululemon
Barry's
Hopper
Casper
Hudl
Miro
The New York Times
Ruggable
Calendly
Okta
Zendesk
Dropbox
Asana
Allstate
Airbnb
ActiveCampaign
Lyft
Webflow
Canva
Sysco
LA Clippers
Getaround
Grammarly
HelloFresh
Lululemon
Barry's
Hopper
Casper
Hudl
Miro
The New York Times
Ruggable

Related automations

Set up in minutes

Zapier connects your tools, triggers actions from real-time data, and streamlines workflows so your team can focus on what matters most.

  1. Step 1

    Connect your tools

    Bring your apps together so information can move automatically between the tools your team already uses.

  2. Step 2

    Define the trigger

    Choose the events that should start your workflow, like a new submission, updated record, completed task, or customer action.

  3. Step 3

    Automate and measure

    Let your workflow handle follow-ups, updates, notifications, and reporting so your team can track progress and act faster.

See how teams are automating with Zapier (and loving it!)

Smart Charge America

Without Zapier, we would have needed well over 100 employees today just to do what we're doing. We would have been out of business by now.

David Laderberg, VP of Sales

Remote

Without having automation, we would have to at least be double our size. Doubling is a bit of a euphemism — I think we would have died or fallen back into oblivion.

Marcelo Lebre, Co-Founder

SweepBright

Zapier helps us close far above 50% more deals than we would without it. It is a key element of our overall strategy and, therefore, of our sales pitch.

Raphael Bochner, Founder and CIO

Digioh

Zapier gives us unlimited flexibility and creativity. With Zapier, you're like an artist with a blank canvas. I don't know what we'd do without it.

Rishi Shah, CEO and Co-Founder

Otter.ai

We don't just want to patch holes; we want to build scalable, future-proof systems. Zapier is helping us do that.

Allen Lai, Head of Customer Experience

Superhuman

We've been able to scale our operations while staying lean. Zapier lets us do more without needing more people.

Jacob Sirrs, Marketing Operations Specialist

Ready to automate your workflow securely?

Streamline processes, uncover new opportunities, and respond faster to change. Empower your team to get more done, without the manual work.