Clean up old drafts
media_cleanupDelete outdated drafts from a project's .ai-media folder to stop it growing; a dry run lists what would be removed first. Final project assets are never touched.
Instructions
Removes old drafts from /.ai-media to stop it growing: rejected drafts after a few days, drafts already used for a final file after a couple of weeks, and untouched drafts after a month. Only files inside .ai-media are ever considered, final assets in the project are never touched, and a used draft goes only if its final file still exists. dry_run is true by default: it lists what would be removed and how much space it frees. Pass dry_run: false to delete. The server also does this on its own once per session unless auto_cleanup is off.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| used_days | No | Default 14 | |
| draft_days | No | Default 30 | |
| rejected_days | No | Default 3 |