Skip to content

import { Aside } from ‘@astrojs/starlight/components’;

Deletes files in a document account based on age. Use it to keep an export or landing folder from growing without bound — drop yesterday’s extracts, or clear archives older than a year.

  • File path — the document account and folder to work in.
  • Age — a number plus a unit: minutes, hours, days, months, or years.
  • Before or after — delete files last modified before the cutoff (the usual clean-up direction) or after it.
  • Recursive — off by default. Turn it on to include subfolders.
  • Test results table — the table the step editor’s Test button writes its preview of matching files into.