Skip to content

Conversation

ankrgyl
Copy link

@ankrgyl ankrgyl commented Jul 8, 2025

Which issue does this PR close?

Closes #298

Rationale for this change

It's useful to have conditional deletes while implementing concurrent primitives on object stores, like distributed locks.

What changes are included in this PR?

Mirror the conditional put implementation to support conditional deletes

Are there any user-facing changes?

Yes a new delete_opts method that accepts deletion opts.

@tustvold
Copy link
Contributor

tustvold commented Jul 8, 2025

Thank you for this, I think this needs some tests. I only see tests for InMemory

@ankrgyl
Copy link
Author

ankrgyl commented Jul 9, 2025

Yep very happy to fill in more tests. Do you just generally run them against your own object storage accounts?

@Xuanwo
Copy link
Member

Xuanwo commented Jul 9, 2025

As far as I know, aws only support delete with if match on s3 express.

@ankrgyl
Copy link
Author

ankrgyl commented Jul 9, 2025

As far as I know, aws only support delete with if match on s3 express.

Ah yes that is correct!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add support for s3 express conditional deletes
3 participants