onyo rm
Delete ASSETs and/or DIRECTORYs.
Directories and asset directories are deleted along with their contents,
if the --recursive flag is set. Otherwise, fails on non-empty directories.
If any of the given paths are invalid, Onyo will error and delete none of them.
usage: onyo rm [-h] [-r] [-m MESSAGE] [--no-auto-message] PATH [PATH ...]
Positional Arguments
- PATH
Assets and/or directories to delete.
Named Arguments
- -r, --recursive
Remove directories recursively including their content.
Default:
False- -m, --message
Append MESSAGE to the commit message. If multiple
--messageoptions are given, their values are concatenated as separate paragraphs.- --no-auto-message
Do not auto-generate the commit message subject. If no MESSAGE is given, the subject line will be
[Empty subject]. This does not disable the inventory operations record at the end of a commit message. The default is configured via ‘onyo.commit.auto-message’.Default:
False
Examples
Delete an asset:
$ onyo rm shelf/laptop_lenovo_T490s.abc123
Retire a user:
$ onyo rm --message "Bob retired; he won at bingo" admin/Bingo\ Bob/