From 69edff6cb536dc58d50ca062640f67a5b41fe83d Mon Sep 17 00:00:00 2001 From: Haneef Mubarak Date: Mon, 22 Feb 2021 10:00:32 -0800 Subject: [PATCH] [Workers/Durable Objects] add deleteAll() --- products/workers/src/content/runtime-apis/durable-objects.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/products/workers/src/content/runtime-apis/durable-objects.md b/products/workers/src/content/runtime-apis/durable-objects.md index 2345a1e8c74..fa76d592006 100644 --- a/products/workers/src/content/runtime-apis/durable-objects.md +++ b/products/workers/src/content/runtime-apis/durable-objects.md @@ -132,6 +132,10 @@ Each method is implicitly wrapped inside a transaction, such that its results ar +- deleteAll() Promise + + - Deletes all keys and associated values, effectively deallocating all storage used by the worker. Once `deleteAll()` has been called, no subsequent Durable Storage operations (including transactions and operations on transactions) may be executed until after the `deleteAll()` operation completes and the returned promise resolves. In the event of a failure while the `deleteAll()` operation is still in flight, it may be that only a subset of the data is properly deleted. + ### `fetch()` handler method