STOP and READ USE THIS TEMPLATE NO EXCEPTIONS - By not using this, you waste your time, our time and really hate puppies. Please remove these two lines and that will confirm you have read them.
Can't delete empty folders.
- os/version: Microsoft Windows Server 2019 Datacenter 1809 (64 bit)
- os/kernel: 10.0.17763.4974 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.21.3
- go/linking: static
- go/tags: cmount
Google Cloud Storage (not google drive)
rclone.exe rmdirs remote:bucketname\server\Databases\20230728\subfolder --log-level DEBUG output (of relevance): 2023/11/03 19:08:18 DEBUG : removing 1 level 0 directories 2023/11/03 19:08:18 INFO : GCS bucket bucketname path server/Databases/20230728/subfolder: Removing directory 2023/11/03 19:08:18 DEBUG : 4 go routines active
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[remote] type = google cloud storage service_account_file = D:\DBA\rclone\service-account.json object_acl = bucketOwnerFullControl bucket_acl = private bucket_policy_only = true location = nam4 storage_class = COLDLINE env_auth = false project_number = XXX ### Double check the config for sensitive info before posting publicly
output (of relevance): 2023/11/03 19:08:18 DEBUG : removing 1 level 0 directories 2023/11/03 19:08:18 INFO : GCS bucket bucketname path server/Databases/20230728/subfolder: Removing directory 2023/11/03 19:08:18 DEBUG : 4 go routines active
rclone indicates the folder was deleted, but it still exists when listing, or looking directly in the bucket in GCP.
I've tried all the methods I could find to delete one folder, rclone purge, rclone rmdir, rclone rmdirs, rclone delete, or rclone mount as a local disk and doing simple cmd.exe rd on the folder I'm trying to delete. The local cache in rclone mount indicated the "deleted" folder was not found, but if I flush the cache or just re-mount the same bucket, the folder reappears.
It never shows an error with -vv or -log-lever DEBUG, never shows "folder is not empty". The commands DO delete all files in the folder path as expected, but it refuses to delete the empty folders.
I also tried the various --delete-after type commands, --rmdirs, etc. They all indicate that the folder was deleted, no errors, but it doesn't get deleted.
Is there another --command to make it work?
Side note, I'm switching to rclone from old CloudBerry Drive (no longer supported, latest .net patches broke core functionality, etc). rclone does everything I need it to and performs way better/faster, the only thing I'm stuck on it getting a folder to actually delete. The same simple cmd.exe rd commands worked fine since ~2015 with CloudBerry in AWS and in GCP, not sure what I'm missing.