KAS-PURGE(1)
π KAS-PURGE β the kas purge command, explained by your bestie
okay so you found kas-purge in the kas manual suite and you're like "what does purging even mean here" β bestie, it means everything goes. Sit down, hydrate, let's get into it. β¨
πΈ SYNOPSIS πΈ
kas purge [-h] [--dry-run] [--isar-privileged | --isar-rootless]
[--preserve-repo-refs]
[config]
Yes the synopsis is that girl. We love a compact usage line. π
π¦ DESCRIPTION π¦
So basically: kas-purge purges all data managed by kas, and yes that includes the managed repos. No survivors. It's giving spring cleaning but make it nuclear. π
Here's the receipts on what actually gets cleared:
- the contents of the build directory
sstate-cachedownloads- the repos managed by kas β including referenced repos inside
KAS_REPO_REF_DIR, if that variable is set (if set, key detail, don't forget it)
And over in KAS_WORK_DIR? It removes the default configuration file, plus the KAS_BUILD_DIR if it happens to be present.
Now listen, if you want to keep your reference repositories alive (real ones know), run it with --preserve-repo-refs and they'll be spared. π«Ά
β οΈ Heads up: this command requires a configuration file, because that's how it locates the managed repos. No config, no purge. Periodt.
π Note: Before purging, kas needs to checkout and resolve all repos to locate the repos managed by kas. So it's doing a whole little reconnaissance mission first, iconic behaviour honestly.
β¨ OPTIONS β¨
π― Positional Arguments
configβ the config file(s), separated by a colon. If you don't specify one and a.config.yamlexists inKAS_WORK_DIR, it'll just use that one. Convenient?? yes. Surprising?? maybe a little. π
π Named Arguments
--dry-run=Falseβ do not remove anything, just print out what would be removed. This is the "window shopping" mode. Main character energy, zero consequences. π--isar-privileged=False,--isar=Falseβ use the ISAR (privileged) build directory layout.--isar-rootless=Falseβ use the ISAR (rootless) build directory layout.--preserve-repo-refs=Falseβ do not remove the reference repositories. Your little reference repos survive. Slay. π
π psst: in the synopsis,--isar-privilegedand--isar-rootlessshow up as mutually exclusive (|), so don't go picking both like it's a buffet.
π SEE ALSO π
Go read these next, they're all in the family:
kas-plugin-cleankas-plugin-cleanallkas-plugin-cleansstate
π KAS
Part of the kas(1) suite. One big happy (and slightly chaotic) family. π§
π Author
Daniel Wagner, Jan Kiszka, Claudius Heine
π Copyright
Siemens and contributors, 2017-2025
and that's the whole page bestie!! this was kas-purge, documented in version 5.4, dated Jun 25, 2026, and it lives in the kas manual pages. go forth and purge responsibly (or --dry-run first, i am BEGGING you π) πβ¨πΈ
π¦ where this page comes from
- ubuntu stonking: kas 5.4-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms