Skip to content
Discussion options

You must be logged in to vote

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:

let updated = client
.update_object()
.set_if_metageneration_match(metageneration)
.set_object(object.set_event_based_hold(false))
.set_update_mask(FieldMask::default().set_paths(["event_based_hold"]))
.send()
.await?;
println!(
"successfully released event_based hold on object {NAME} in bucket {buck…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by coryan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
type: question Request for information or clarification. Not an issue. priority: p3 Desirable enhancement or fix. May not be included in next release. api: storage Issues related to the Cloud Storage API.
2 participants
Converted from issue

This discussion was converted from issue #4046 on December 11, 2025 14:48.