[GH-ISSUE #1326] Delete mechanics is not the same with the actual GCS #190

Open
opened 2026-03-03 12:09:02 +03:00 by kerem · 0 comments
Owner

Originally created by @bearaujustkpd on GitHub (Sep 13, 2023).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/1326

So when I called:

err = c.Bucket(b).bucket.Object(o).Generation(g).Delete(ctx)
if err != nil {
log.Fatalf("Failed to delete object: %v", err)
}

where the client is from:

fakeGCS := fakestorage.NewServer(nil)
client := fakeGCS.Client()

the object still exists with deleted_at..
but when I'm not using fake gcs, the object is permanently deleted

Originally created by @bearaujustkpd on GitHub (Sep 13, 2023). Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/1326 So when I called: ```go err = c.Bucket(b).bucket.Object(o).Generation(g).Delete(ctx) if err != nil { log.Fatalf("Failed to delete object: %v", err) } ``` where the client is from: ```go fakeGCS := fakestorage.NewServer(nil) client := fakeGCS.Client() ``` the object still exists with deleted_at.. but when I'm not using fake gcs, the object is permanently deleted
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/fake-gcs-server#190
No description provided.