---
title: New Workers bulk secrets API endpoint
description: A new API endpoint lets you create, update, and delete multiple Worker secrets in a single request.
image: https://developers.cloudflare.com/changelog-preview.png
---

> Documentation Index  
> Fetch the complete documentation index at: https://developers.cloudflare.com/changelog/llms.txt  
> Use this file to discover all available pages before exploring further. 

[Skip to content](#%5Ftop) 

# Changelog

New updates and improvements at Cloudflare.

[ Subscribe to RSS ](https://developers.cloudflare.com/changelog/rss/index.xml) [ View RSS feeds ](https://developers.cloudflare.com/fundamentals/new-features/available-rss-feeds/) 

![hero image](https://developers.cloudflare.com/_astro/hero.CVYJHPAd_26AMqX.svg) 

[ ← Back to all posts ](https://developers.cloudflare.com/changelog/) 

## New Workers bulk secrets API endpoint

Jun 03, 2026 

[ Workers ](https://developers.cloudflare.com/workers/) 

You can now create, update, or delete multiple secrets for your Worker in a single request using the [bulk secrets endpoint](https://developers.cloudflare.com/api/resources/workers/subresources/scripts/subresources/secrets/methods/bulk%5Fupdate/).

* Include a secret with a value to create or update.
* Set a secret to `null` to delete.
* Secrets not included in the request are left unchanged.

The following example creates `API_KEY`, updates the already existing `DB_PASSWORD`, and deletes `OLD_SECRET`:

```
{  "secrets": {    "API_KEY": { "type": "secret_text", "name": "API_KEY", "text": "my-api-key" },    "DB_PASSWORD": { "type": "secret_text", "name": "DB_PASSWORD", "text": "my-db-password" },    "OLD_SECRET": null  }}
```

You can do the same from the command line using [wrangler secret bulk](https://developers.cloudflare.com/workers/wrangler/commands/workers/#secret-bulk):

Terminal window

```
npx wrangler secret bulk < secrets.json
```

To delete a key, set its value to `null` in the JSON file. Deletion is not supported with `.env` files.

Each request supports up to **100 total operations** (creates, updates, and deletes combined).

```json
{"@context":"https://schema.org","@type":"BlogPosting","@id":"https://developers.cloudflare.com/changelog/post/2026-06-03-bulk-secrets-api/#page","headline":"New Workers bulk secrets API endpoint · Changelog","description":"A new API endpoint lets you create, update, and delete multiple Worker secrets in a single request.","url":"https://developers.cloudflare.com/changelog/post/2026-06-03-bulk-secrets-api/","inLanguage":"en","image":"https://developers.cloudflare.com/changelog-preview.png","dateModified":"2026-06-03","datePublished":"2026-06-03","publisher":{"@type":"Organization","name":"Cloudflare","url":"https://www.cloudflare.com/"},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
```
