delete_artifacts
Remove a project's build artifacts—all or those older than N days—to reclaim storage. Preview the byte count with dry_run first; deletions cannot be undone.
Instructions
[WRITE][risk=high] Delete a project's artifacts (all, or older than N days).
IRREVERSIBLE — reads the artifact inventory first so priorState records the file count and bytes being destroyed; no undo. Pass dry_run=True to preview (reports what would be reclaimed without deleting).
Args: project: Project id or full path. older_than_days: Only delete artifacts created before this many days ago; 0 = the server's bulk delete of all eligible artifacts. dry_run: If True, preview without deleting. acknowledge_unknown_inventory: Allow the bulk delete when the artifact inventory cannot be read (it is refused otherwise, because nothing would record what was destroyed). Never applies to older_than_days. target: Server target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| dry_run | No | ||
| project | Yes | ||
| older_than_days | No | ||
| acknowledge_unknown_inventory | No |