git-annex-dropunused(1)
π git-annex-dropunused β drop unused file content
okay bestie, this is the git-annex-dropunused(1) page from the General Commands Manual, and it's literally about yeeting the file content you're not using anymore. let's get into it π
β¨ SYNOPSIS β¨
git annex dropunused [number|range ...]
πΈ DESCRIPTION πΈ
so here's the vibe: dropunused drops the data that corresponds to the numbers you give it β and those numbers are the ones listed by the last git annex unused. like, the most recent run of it, not some old one from three weeks ago. iykyk π
you can also hit it with ranges of numbers, like "1-1000". super handy when you've got a whole lil pile to clear out.
or, if you're feeling feral and want it ALL gone, just say "all" and it drops every single bit of unused data. periodt π
π OPTIONS π
--from=remoteβ instead of dropping the unused files from the local repo, you drop them from the remote repository instead. not me making the remote do the work π--forceβ okay so use this one with care, fr fr. it bypasses the safety checks and forces git-annex to delete the content of the specified files β even from the last repository that is storing their content. π¨ data loss can literally result from using this option. this is giving main character energy in the worst way possible, please be careful.--jobs=N,-JNβ runs multiple drop jobs in parallel. this is highkey particularly useful when git-annex has to contact remotes to check if it can drop content. for example:-J4β¨
setting this to "cpus" will run one job per CPU core. slay, let the machine cook π₯
--jsonβ enable JSON output. this is intended to be parsed by programs that use git-annex. each line of output is a JSON object. very demure, very machine-readable π--json-error-messagesβ messages that would normally be output to standard error are included in the JSON instead. no stray stderr, just vibes π
also the git-annex-common-options(1) can be used. go read those too bestie, they're iconic π«Ά
π¦ SEE ALSO π¦
π AUTHOR π
Joey Hess <id@joeyh.name> β absolute legend, no cap π
and that's the whole page bestie!! this was git-annex-dropunused(1) from the git-annex manual β go forth and drop responsibly, and don't touch --force unless you truly mean it πβ¨
π¦ where this page comes from
- alpine 3.24: git-annex-doc 10.20261026-r0 Β· AGPL-3.0-or-later
- arch rolling: git-annex 10.20261026-2 Β· AGPL-3.0-only
- debian trixie: git-annex 10.20250416-2 Β· AGPL-3.0-or-later
- debian trixie: git-annex 10.20250416-2+deb13u1 Β· AGPL-3.0-or-later
- epel 10: git-annex 10.20250320-1.el10_0 Β· AGPL-3.0-or-later
- fedora 43: git-annex 10.20250630-4.fc43 Β· AGPL-3.0-or-later
- fedora 43: git-annex 10.20250929-5.fc43 Β· AGPL-3.0-or-later
- fedora 44: git-annex 10.20260115-1.fc44 Β· AGPL-3.0-or-later
- nixos 26.05: git-annex 10.20260421
- nixpkgs unstable: git-annex 10.20260421
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- ubuntu noble: git-annex 10.20240129-1build1 Β· AGPL-3.0-or-later
- ubuntu questing: git-annex 10.20250721-1
- ubuntu resolute: git-annex 10.20251029-1ubuntu1 Β· AGPL-3.0-or-later
- ubuntu stonking: git-annex 10.20251029-1ubuntu1 Β· AGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms