Remove empty folder from local pc

What is the problem you are having with rclone?


What is your rclone version (output from rclone version)


Which OS you are using and how many bits (eg Windows 7, 64 bit)

windows 7

Which cloud storage system are you using? (eg Google Drive)


I have folder where i downloading folders lets say C:\Download\folders and then using rclone move command for upload the folders from C:\Download. now rclone keeping empty folder.

what will be the rmdirs command? if i use following command it removes C:\Download folder i want rmdirs run inside the C:\Download subdirectories. so only empty sub folders get delete and remain C:\Download. i tried C:\Download\* but getting error "system cannot fine the directory"

rclone rmdirs "C:\Download"

one thing i can do is to make a batch script and run it like this

CD "C:\Download"
for /f "delims=" %%d in ('dir /s /b /ad %1 ^| sort /r') do rd "%%d" 2>nul

Just add:

    --leave-root   Do not remove root directory if empty


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.