github.com/10XDev/rclone@v1.52.3-0.20200626220027-16af9ab76b2a/docs/content/commands/rclone_delete.md (about) 1 --- 2 title: "rclone delete" 3 description: "Remove the contents of path." 4 slug: rclone_delete 5 url: /commands/rclone_delete/ 6 # autogenerated - DO NOT EDIT, instead edit the source code in cmd/delete/ and as part of making a release run "make commanddocs" 7 --- 8 # rclone delete 9 10 Remove the contents of path. 11 12 ## Synopsis 13 14 15 Remove the files in path. Unlike `purge` it obeys include/exclude 16 filters so can be used to selectively delete files. 17 18 `rclone delete` only deletes objects but leaves the directory structure 19 alone. If you want to delete a directory and all of its contents use 20 `rclone purge` 21 22 If you supply the --rmdirs flag, it will remove all empty directories along with it. 23 24 Eg delete all files bigger than 100MBytes 25 26 Check what would be deleted first (use either) 27 28 rclone --min-size 100M lsl remote:path 29 rclone --dry-run --min-size 100M delete remote:path 30 31 Then delete 32 33 rclone --min-size 100M delete remote:path 34 35 That reads "delete everything with a minimum size of 100 MB", hence 36 delete all files bigger than 100MBytes. 37 38 39 ``` 40 rclone delete remote:path [flags] 41 ``` 42 43 ## Options 44 45 ``` 46 -h, --help help for delete 47 --rmdirs rmdirs removes empty directories but leaves root intact 48 ``` 49 50 See the [global flags page](/flags/) for global options not listed here. 51 52 ## SEE ALSO 53 54 * [rclone](/commands/rclone/) - Show help for rclone commands, flags and backends. 55