minio-dotnet icon indicating copy to clipboard operation
minio-dotnet copied to clipboard

How to detect deleted objects with call to ListObjectsAsync()

Open brettzook opened this issue 2 years ago • 1 comments

I have a bucket with versioning enabled, that contains these objects, as seen in the MinIO web UI:

image

Note that I have the Show deleted objects option selected, and the object named links.csv has been deleted. Also this is the full version history of links.csv: image

I'm using version 5.0.0 of the Nuget package, and calling ListObjectsAsync(listArgs) with a parameter like

new ListObjectsArgs()
        .WithBucket("document-management-test")
        .WithPrefix("DirA/")
        .WithRecursive(false)
        .WithVersions(true);

The results include records for both objects, and specifically there are two records for links.csv representing the first two versions (dff166a9 and f3d45bdc), but none representing the fact that the object was deleted.

image

Should the 'deleted' version be appearing in these results or is there some other intended way to know the object is in a deleted state?

brettzook avatar Jul 25 '23 19:07 brettzook

Hello everyone - is this possible? I join the question - I have not found anywhere the possibility to find "Deleted" versions of objects in order to completely delete the "Folder" and this version itself. How to do this?

Thanks in advance

IlyaNavodkin avatar Aug 20 '25 11:08 IlyaNavodkin