github.com/10XDev/rclone@v1.52.3-0.20200626220027-16af9ab76b2a/docs/content/commands/rclone_rmdirs.md (about)

     1  ---
     2  title: "rclone rmdirs"
     3  description: "Remove empty directories under the path."
     4  slug: rclone_rmdirs
     5  url: /commands/rclone_rmdirs/
     6  # autogenerated - DO NOT EDIT, instead edit the source code in cmd/rmdirs/ and as part of making a release run "make commanddocs"
     7  ---
     8  # rclone rmdirs
     9  
    10  Remove empty directories under the path.
    11  
    12  ## Synopsis
    13  
    14  This removes any empty directories (or directories that only contain
    15  empty directories) under the path that it finds, including the path if
    16  it has nothing in.
    17  
    18  If you supply the --leave-root flag, it will not remove the root directory.
    19  
    20  This is useful for tidying up remotes that rclone has left a lot of
    21  empty directories in.
    22  
    23  
    24  
    25  ```
    26  rclone rmdirs remote:path [flags]
    27  ```
    28  
    29  ## Options
    30  
    31  ```
    32    -h, --help         help for rmdirs
    33        --leave-root   Do not remove root directory if empty
    34  ```
    35  
    36  See the [global flags page](/flags/) for global options not listed here.
    37  
    38  ## SEE ALSO
    39  
    40  * [rclone](/commands/rclone/)	 - Show help for rclone commands, flags and backends.
    41