method ICacheApi.delete
ICacheApi.delete(request: Request | string): Promise<boolean>

Removes a cached response.

Parameters

request: Request | string

The cache key

Return Type

Promise<boolean>

true when an entry was removed

Usage

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