Delete Old Files
import { Aside } from ‘@astrojs/starlight/components’;
Description
Section titled “Description”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.
Configuration
Section titled “Configuration”Files to Delete
Section titled “Files to Delete”- 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.