Latenode

Automate daily Latenode storage cleanup to stay organized

This template clears old rows from Latenode Database on a daily schedule. A schedule starts the run.

Latenode Database loads the table your other scenarios write. JavaScript keeps objects older than the age you set, then each stale row is deleted.

Updated Sep 16, 2026Est. run: 9sEst. cost: $0.0006
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Deletes aged Database objects on a daily schedule
  • Reads Latenode Database and removes stale rows
  • Lets JavaScript define the age rule

How it works

1
Trigger

Run daily

The scenario starts once per day at the time you choose.

2
Action

Load stored objects

Latenode Database reads the table you use as key-value storage.

3
Logic

Pick stale rows

JavaScript keeps objects older than the age you set, or keys you explicitly list.

4
Action

Delete them

Latenode Database removes each stale object. Iterate the JavaScript array.

Setup guide

1

Create the Database table

In Latenode Database, use the table your scenarios write keys into. Include a timestamp or similar field so JavaScript can age rows.

2

Set the daily schedule

Add a schedule, for example 00:00 in your timezone.

3

Get, filter, delete

Load Database objects, then JavaScript with your age threshold, then iterate and delete each stale object.

Requirements

Latenode Database objects your other scenarios actually write
A timestamp or equivalent field so stale rows can be identified
A daily schedule

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.