method IR2Bucket.delete
IR2Bucket.delete(key: string): Promise<void>

Removes an object. Succeeds whether or not it existed, and reports nothing about what was removed — which is why R2Storage.delete heads first to honor its committed Promise<boolean>.

Parameters

key: string

The object key

Return Type

Promise<void>

Usage

import { type IR2Bucket } from "cloudflare-plugin/src/index.ts";