docs: cross link doc pages for related commands

This commit is contained in:
albertony
2022-06-19 15:51:37 +02:00
parent 4b7dc35cf4
commit de5ccaab8e
23 changed files with 117 additions and 84 deletions

View File

@@ -25,16 +25,16 @@ var commandDefinition = &cobra.Command{
Short: `Remove the files in path.`,
// Warning! "|" will be replaced by backticks below
Long: strings.ReplaceAll(`
Remove the files in path. Unlike |purge| it obeys include/exclude
filters so can be used to selectively delete files.
Remove the files in path. Unlike [purge](/commands/rclone_purge/) it
obeys include/exclude filters so can be used to selectively delete files.
|rclone delete| only deletes files but leaves the directory structure
alone. If you want to delete a directory and all of its contents use
the |purge| command.
the [purge](/commands/rclone_purge/) command.
If you supply the |--rmdirs| flag, it will remove all empty directories along with it.
You can also use the separate command |rmdir| or |rmdirs| to
delete empty directories only.
You can also use the separate command [rmdir](/commands/rclone_rmdir/) or
[rmdirs](/commands/rclone_rmdirs/) to delete empty directories only.
For example, to delete all files bigger than 100 MiB, you may first want to
check what would be deleted (use either):