Skip to content

[Feature] Support deleting multiple R2 objects #780

@lukevalenta

Description

@lukevalenta

Is there an existing issue for this?

  • I have searched the existing issues

Description

Currently, the Rust bindings only support deleting a single key at a time (

pub fn delete(this: &R2Bucket, key: String) -> Result<js_sys::Promise, JsValue>;
), but the Javascript API supports deleting up to 1000 keys at once: https://developers.cloudflare.com/r2/api/workers/workers-api-reference/#bucket-method-definitions.

We should add a delete_multiple call to support this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions