github.com/rclone/rclone@v1.66.1-0.20240517100346-7b89735ae726/docs/content/commands/rclone_purge.md (about)

     1  ---
     2  title: "rclone purge"
     3  description: "Remove the path and all of its contents."
     4  slug: rclone_purge
     5  url: /commands/rclone_purge/
     6  groups: Important
     7  # autogenerated - DO NOT EDIT, instead edit the source code in cmd/purge/ and as part of making a release run "make commanddocs"
     8  ---
     9  # rclone purge
    10  
    11  Remove the path and all of its contents.
    12  
    13  ## Synopsis
    14  
    15  
    16  Remove the path and all of its contents.  Note that this does not obey
    17  include/exclude filters - everything will be removed.  Use the
    18  [delete](/commands/rclone_delete/) command if you want to selectively
    19  delete files. To delete empty directories only, use command
    20  [rmdir](/commands/rclone_rmdir/) or [rmdirs](/commands/rclone_rmdirs/).
    21  
    22  **Important**: Since this can cause data loss, test first with the
    23  `--dry-run` or the `--interactive`/`-i` flag.
    24  
    25  
    26  ```
    27  rclone purge remote:path [flags]
    28  ```
    29  
    30  ## Options
    31  
    32  ```
    33    -h, --help   help for purge
    34  ```
    35  
    36  
    37  ## Important Options
    38  
    39  Important flags useful for most commands.
    40  
    41  ```
    42    -n, --dry-run         Do a trial run with no permanent changes
    43    -i, --interactive     Enable interactive mode
    44    -v, --verbose count   Print lots more stuff (repeat for more)
    45  ```
    46  
    47  See the [global flags page](/flags/) for global options not listed here.
    48  
    49  # SEE ALSO
    50  
    51  * [rclone](/commands/rclone/)	 - Show help for rclone commands, flags and backends.
    52