docs: update documentation of commands delete,purge,rmdir,rmdirs

This commit is contained in:
albertony
2020-11-13 11:07:34 +01:00
committed by Nick Craig-Wood
parent fb001b6c01
commit 79474b2e4c
4 changed files with 30 additions and 17 deletions

View File

@@ -17,8 +17,9 @@ var commandDefinition = &cobra.Command{
Short: `Remove the path and all of its contents.`,
Long: `
Remove the path and all of its contents. Note that this does not obey
include/exclude filters - everything will be removed. Use ` + "`" + `delete` + "`" + ` if
you want to selectively delete files.
include/exclude filters - everything will be removed. Use the ` + "`delete`" + `
command if you want to selectively delete files. To delete empty directories only,
use command ` + "`rmdir`" + ` or ` + "`rmdirs`" + `.
**Important**: Since this can cause data loss, test first with the
` + "`--dry-run` or the `--interactive`/`-i`" + ` flag.