Can't delete empty folders #19516
-
My bucket has some empty folders that cannot be removed in any way. For example: $ mcli ls herd-storage/snapshots/documents-snapshots/data_2024-02-23
[2024-04-16 10:02:45 CEST] 0B data_2024-02-23/
$ mcli ls herd-storage/snapshots/documents-snapshots/data_2024-02-23/
$ mcli rm herd-storage/snapshots/documents-snapshots/data_2024-02-23/
mcli: <ERROR> Failed to remove `herd-storage/snapshots/documents-snapshots/data_2024-02-23/`. Object does not exist
$ rclone purge herd-storage:snapshots/documents-snapshots/data_2024-02-23/
$ mcli ls herd-storage/snapshots/documents-snapshots/data_2024-02-23
[2024-04-16 10:03:13 CEST] 0B data_2024-02-23/ I also tried to delete via the Minio console but it didn't work. I also tried a I really need help since I don't know what to try now. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Any help/idea/suggestion? |
Beta Was this translation helpful? Give feedback.
-
Hi @vipurkumar, I did some search to understand your suggestion (I'm a Minio noob), and then I did:
The problematic folders are still there, e.g.:
So I did some more search and I found that object expiration is tied to the activity of the scanner, so I supposed it could take some time. Then I decided to monitor the scanner, but I get this error:
Did what I do correspond to what you suggested? Should I worry about the scanner activity given the error message above? |
Beta Was this translation helpful? Give feedback.
-
@klauspost Thank you very much, adding |
Beta Was this translation helpful? Give feedback.
First of all, upgrade your minio server. We do not provide support on old releases - and this seems quite old.
Second. You can't do
mcli rm
on prefixes.documents-snapshots/data_2024-02-23
is a prefix and not an object. Directories does not exist - but you can create objects that look like a directory. You will need to domcli rm -r -versions
the very least, which will remove all objects with that prefix.