Skip to Content
ReferenceToolsdisk_clean

disk_clean

Frees what disk_usage counts as cleanable: old caches deleted, old sessions moved to the Trash. Settings and credentials stay. dry_run lists first.

Arguments

Over MCP every tool also takes machine: the machine’s name or id, optional when only one machine is online.

NameTypeRequiredMeaning
dry_runbooleannoSay what would be removed and remove nothing. Default: false.
older_than_daysintegernoRemove only files unchanged for at least this many days. It can only raise an item’s own age.
targetsstring[]noAs in disk_usage: agent:<id> or cache:<id>. Absent: every one known.

Result

NameTypeRequiredMeaning
dry_runbooleanyes
freed_bytesintegeryesBytes removed, or that would be on a dry run.
targetsobject[]yes
truncatedbooleanyesThe walk stopped at its limit: run it again to go further.

Examples

{ "name": "disk_clean", "arguments": { "machine": "<machine>" } }

Limits

The call times out after 120 s (timed_out). Available since version 0.1.13. A refused or failed call returns one of the error codes.