{"id":249,"date":"2026-02-24T00:00:00","date_gmt":"2026-02-24T00:00:00","guid":{"rendered":"https:\/\/wordpress.securinsight.ca\/index.php\/2026\/02\/24\/durable-objects-workers-deleteall-now-deletes-durable-object-alarm\/"},"modified":"2026-02-24T00:00:00","modified_gmt":"2026-02-24T00:00:00","slug":"durable-objects-workers-deleteall-now-deletes-durable-object-alarm","status":"publish","type":"post","link":"https:\/\/wordpress.securinsight.ca\/index.php\/2026\/02\/24\/durable-objects-workers-deleteall-now-deletes-durable-object-alarm\/","title":{"rendered":"Durable Objects, Workers &#8211; deleteAll() now deletes Durable Object alarm"},"content":{"rendered":"<p><code>deleteAll()<\/code> now deletes a Durable Object alarm in addition to stored data for Workers with a compatibility date of <code>2026-02-24<\/code> or later. This change simplifies clearing a Durable Object&#8217;s storage with a single API call.<\/p>\n<p>Previously, <code>deleteAll()<\/code> only deleted user-stored data for an object. Alarm usage stores metadata in an object&#8217;s storage, which required a separate <code>deleteAlarm()<\/code> call to fully clean up all storage for an object. The <code>deleteAll()<\/code> change applies to both KV-backed and SQLite-backed Durable Objects.<\/p>\n<div>\n<figure>\n<pre data-language=\"js\"><code class=\"language-js\"><div><div><span>\/\/ Before: two API calls required to clear all storage<\/span><\/div><\/div><div><div><span>await<\/span><span> <\/span><span>this<\/span><span>.<\/span><span>ctx<\/span><span>.<\/span><span>storage<\/span><span>.<\/span><span>deleteAlarm<\/span><span>()<\/span><span>;<\/span><\/div><\/div><div><div><span>await<\/span><span> <\/span><span>this<\/span><span>.<\/span><span>ctx<\/span><span>.<\/span><span>storage<\/span><span>.<\/span><span>deleteAll<\/span><span>()<\/span><span>;<\/span><\/div><\/div><div><div>\n<\/div><\/div><div><div><span>\/\/ Now: a single call clears both data and the alarm<\/span><\/div><\/div><div><div><span>await<\/span><span> <\/span><span>this<\/span><span>.<\/span><span>ctx<\/span><span>.<\/span><span>storage<\/span><span>.<\/span><span>deleteAll<\/span><span>()<\/span><span>;<\/span><\/div><\/div><\/code><\/pre>\n<div>\n<div><\/div>\n<\/div>\n<\/figure>\n<\/div>\n<p>For more information, refer to the <a href=\"https:\/\/developers.cloudflare.com\/durable-objects\/api\/sqlite-storage-api\/#deleteall\">Storage API documentation<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>deleteAll() now deletes a Durable Object alarm in addition to stored data for Workers with a compatibility date of 2026-02-24 or later. This change simplifies clearing a Durable Object&#8217;s storage with a single API call. Previously, deleteAll() only deleted user-stored data for an object. Alarm usage stores metadata in an object&#8217;s storage, which required a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-249","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/comments?post=249"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/249\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/media?parent=249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/categories?post=249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/tags?post=249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}