github.com/ncw/rclone@v1.48.1-0.20190724201158-a35aa1360e3e/docs/content/commands/rclone_rmdirs.md (about)

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