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] PATH [PATH ...]

Positional Arguments

PATH

Assets and/or directories to delete.

Named Arguments

-r, --recursive

If set, remove directories recursively including their content.

Default: False

-m, --message

Use the given MESSAGE as the commit message (rather than the default). If multiple --message options are given, their values are concatenated as separate paragraphs.

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/