Wix automations - delete date after passed

Question:
Hey I´m new to this,
how can i delete passed dates in my cms with wix automations?

Product:
Wix Studio Editor

What are you trying to achieve:
In my cms “companies” is a column from type date named “column1”. I want to have an automation that clears all fields with a date, that already passed.

The automation should start every day at 00:00. The code should check the current date (e.g. 04. January 2025) and every field in “column1” which contains a date thats past that date (e.g. 03. January 2025) should be cleared.

Hope you can help me.
Thanks alot!

Hello! A better solution here may be to use a scheduled job. You can have it run on whatever interval you define - for example daily then write the logic it should execute within another function (to check the dates in your CMS and delete per the logic)

You can check out the documentation here Schedule Jobs

2 Likes