You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How can I delete a file in the bucket that has default_event_based_hold set to true? #4046
Activity
coryan commentedon Dec 11, 2025
I am a bit hazy on event holds, you may want to double check the documentation:
https://docs.cloud.google.com/storage/docs/object-holds
If I read that correctly, you first need to remove the hold and then remove the object. This may help:
google-cloud-rust/src/storage/examples/src/objects/release_event_based_hold.rs
Lines 29 to 38 in 12f34ba