datalad drop(1) | General Commands Manual | datalad drop(1) |
datalad drop - drop file content from datasets
datalad drop [-h] [-d DATASET] [-r] [-R LEVELS] [--nocheck] [--if-dirty {fail,save-before,ignore}] [PATH ...]
This command takes any number of paths of files and/or directories. If a common (super)dataset is given explicitly, the given paths are interpreted relative to this dataset.
Recursion into subdatasets needs to be explicitly enabled, while recursion into subdirectories within a dataset is done automatically. An optional recursion limit is applied relative to each given input path.
By default, the availability of at least one remote copy is verified before file content is dropped. As these checks could lead to slow operation (network latencies, etc), they can be disabled.
Drop single file content::
% datalad drop <path/to/file>
Drop all file content in the current dataset::
% datalad drop
Drop all file content in a dataset and all its subdatasets::
% datalad drop -d <path/to/dataset> -r
Disable check to ensure the configured minimum number of remote sources for dropped data::
% datalad drop <path/to/content> --nocheck
datalad is developed by The DataLad Team and Contributors <team@datalad.org>.
2021-02-04 | datalad drop 0.14.0 |