rclone rmdir remote:bucket/empty-dir

Category: Backup & Restore

rclone rmdir remote:bucket/empty-dir

Remove an empty remote directory

Deletes the directory only if it is completely empty, otherwise rclone refuses. Use rclone rmdirs to remove a whole tree of empty directories at once. Safer than purge because it never touches files.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.