DATALAD-CLEAN(1)

✨ NAME ✨

hey bestie πŸ’– welcome to the General Commands Manual page for datalad clean(1) β€” yes, we're in cleanup era, and it's honestly iconic. πŸŽ€

datalad clean - clean up after DataLad (possible temporary files etc.)


🌈 SYNOPSIS 🌈

datalad clean [-h] [-d DATASET] [--what [WHAT ...]] [--dry-run] [-r]
       [-R LEVELS] [--version]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so datalad clean is the cleanup bestie: it removes temporary files and directories left behind by DataLad and git-annex in a dataset. that's literally the assignment. 🧹✨

πŸ“ Examples πŸ“

Clean all known temporary locations of a dataset:

% datalad clean

Report on all existing temporary locations of a dataset:

% datalad clean --dry-run

Clean all known temporary locations of a dataset and all its subdatasets:

% datalad clean -r

Clean only the archive extraction caches of a dataset and all its subdatasets:

% datalad clean --what cached-archives -r

Report on existing annex transfer files of a dataset and all its subdatasets:

% datalad clean --what annex-transfer -r --dry-run

πŸ’… OPTIONS πŸ’…

  • -h, --help, --help-np β€” show this help message. --help-np forcefully disables the use of a pager for displaying the help message.
  • -d DATASET, --dataset DATASET β€” specify the dataset to perform the clean operation on. If no dataset is given, an attempt is made to identify the dataset in current working directory. Constraints: Value must be a Dataset or a valid identifier of a Dataset (e.g. a path) or value must be NONE.
  • --what [WHAT ...] β€” What to clean. If none specified -- all known targets are considered. Constraints: value must be one of ('cached-archives', 'annex-tmp', 'annex-transfer', 'search-index') or value must be NONE.
  • --dry-run β€” Report on cleanable locations - not actually cleaning up anything.
  • -r, --recursive β€” if set, recurse into potential subdatasets.
  • -R LEVELS, --recursion-limit LEVELS β€” limit recursion into subdatasets to the given number of levels. Constraints: value must be convertible to type 'int' or value must be NONE.
  • --version β€” show the module and its version which provides the command.
🫢 tiny vibe check: --dry-run is the report-only option, bestie β€” it does not actually clean anything. that's literally the line above. πŸ’€

πŸ‘‘ AUTHORS πŸ‘‘

datalad is developed by The DataLad Team and Contributors <team@datal-ad.org>.


and that's the whole page, bestie 🫢 β€” this source/version footer is datalad clean 1.1.5, dated 2025-06-15, and it's the datalad clean(1) page. periodt πŸ’…βœ¨

πŸ“¦ where this page comes from