|
| 1 | +--- |
| 2 | +title: Cloudflare Tunnel and Networks API will no longer return deleted resources by default starting December 1, 2025 |
| 3 | +description: The is_deleted parameter for specific Cloudflare Tunnel and Zero Trust Networks list API endpoints will default to false. To retrieve deleted resources, you must explicitly set this parameter to true. |
| 4 | +products: |
| 5 | + - cloudflare-one |
| 6 | +hidden: false |
| 7 | +date: 2025-09-02 |
| 8 | +--- |
| 9 | + |
| 10 | +Starting **December 1, 2025**, list endpoints across [Cloudflare Tunnel API](/api/resources/zero_trust/subresources/tunnels/) and [Zero Trust Networks API](/api/resources/zero_trust/subresources/networks/) will no longer return deleted tunnels, routes, subnets and virtual networks by default. This change makes the API behavior more intuitive by only returning active resources unless otherwise specified. |
| 11 | + |
| 12 | +No action is required if you already explicitly set `is_deleted=false` or if you only need to list active resources. |
| 13 | + |
| 14 | +This change affects the following API endpoints: |
| 15 | +* [`GET /accounts/{account_id}/tunnels`](/api/resources/zero_trust/subresources/tunnels/methods/list/) |
| 16 | +* [`GET /accounts/{account_id}/cfd_tunnel`](/api/resources/zero_trust/subresources/tunnels/subresources/cloudflared/methods/list/) |
| 17 | +* [`GET /accounts/{account_id}/warp_connector`](/api/resources/zero_trust/subresources/tunnels/subresources/warp_connector/methods/list/) |
| 18 | +* [`GET /accounts/{account_id}/teamnet/routes`](/api/resources/zero_trust/subresources/networks/subresources/routes/methods/list/) |
| 19 | +* [`GET /accounts/{account_id}/zerotrust/subnets`](/api/resources/zero_trust/subresources/networks/subresources/subnets/methods/list/) |
| 20 | +* [`GET /accounts/{account_id}/teamnet/virtual_networks`](/api/resources/zero_trust/subresources/networks/subresources/virtual_networks/methods/list/) |
| 21 | + |
| 22 | +## What is changing? |
| 23 | + |
| 24 | +The default behavior of the `is_deleted` query parameter will be updated. |
| 25 | + |
| 26 | +| Scenario | Previous Behavior (before December 1, 2025) | New Behavior (from December 1, 2025) | |
| 27 | +| :--- | :--- | :--- | |
| 28 | +| `is_deleted` parameter is omitted | Returns **active & deleted** tunnels, routes, subnets and virtual networks | Returns **only active** tunnels, routes, subnets and virtual networks | |
| 29 | + |
| 30 | + |
| 31 | +## Action required |
| 32 | + |
| 33 | +If you need to retrieve deleted (or all) resources, please update your API calls to explicitly include the `is_deleted` parameter before **December 1, 2025**. |
| 34 | + |
| 35 | +```bash |
| 36 | +# To get deleted tunnels |
| 37 | +curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/tunnels?is_deleted=true" \ |
| 38 | + -H "Authorization: Bearer $API_TOKEN" |
| 39 | + |
| 40 | +# To get active tunnels |
| 41 | +curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/tunnels?is_deleted=false" \ |
| 42 | + -H "Authorization: Bearer $API_TOKEN" |
| 43 | +``` |
| 44 | + |
| 45 | +## Why we’re making this change |
| 46 | +This update is based on user feedback and aims to: |
| 47 | +* **Create a more intuitive default:** Aligning with common API design principles where list operations return only active resources by default. |
| 48 | +* **Reduce unexpected results:** Prevents users from accidentally operating on deleted resources that were returned unexpectedly. |
| 49 | +* **Improve performance:** For most users, the default query result will now be smaller and more relevant. |
| 50 | + |
| 51 | +To learn more, please visit the [Cloudflare Tunnel API](/api/resources/zero_trust/subresources/tunnels/) and [Zero Trust Networks API](/api/resources/zero_trust/subresources/networks/) documentation. |
0 commit comments