Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Automatically manage inactive Access service tokens
description: Disable or delete service tokens that have not authenticated for a specified period.
date: 2026-09-14
products:
- access
---

Cloudflare Access administrators can now automatically disable or delete inactive service tokens. Administrators can set an inactivity period from 30 to 365 days and choose what Access does when a token reaches that limit.

Access checks service tokens daily. A token must be older than the configured period and must not have successfully authenticated during that period. Service tokens referenced by an Access policy rule are excluded from automatic cleanup.

For configuration instructions, refer to [Manage inactive service tokens](/cloudflare-one/access-controls/service-credentials/service-tokens/#manage-inactive-service-tokens).
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {

You can provide automated systems with service tokens to authenticate against your Cloudflare One policies. Cloudflare Access will generate service tokens that consist of a Client ID and a Client Secret. Automated systems or applications can then use these values to reach an application protected by Access.

This section covers how to create, rotate, renew, disable, and revoke a service token.
This section covers how to create, rotate, renew, disable, and revoke a service token. You can also configure Access to manage inactive service tokens automatically.

## Create a service token

Expand Down Expand Up @@ -170,6 +170,25 @@ resource "cloudflare_zero_trust_access_service_token" "example_service_token" {

</TabItem> </Tabs>

## Manage inactive service tokens

You can configure Access to automatically disable or delete service tokens that are no longer in use. The setting applies to all service tokens in your Zero Trust account.

To configure automatic service token cleanup:

1. In the [Cloudflare dashboard](https://dash.cloudflare.com/), go to **Zero Trust** > **Access controls** > **Service credentials** > **Service Tokens**.
2. Open the service token inactivity settings.
3. Choose how long a service token can remain inactive. You can select a period from 30 to 365 days.
4. Choose whether Access should disable or delete inactive tokens.
5. Save your changes.

Access checks service tokens once a day. A token is eligible for automatic cleanup when both of these conditions are true:

- The token is older than the configured inactivity period.
- The token has not successfully authenticated with an Access application during that period.

Access does not automatically disable or delete a service token that is referenced by an Access policy rule. Disabled tokens remain in your account and can be turned on again. Deleted tokens cannot be recovered.

## Turn a service token on or off

Turn off a service token to temporarily prevent it from authenticating. Access preserves the token so you can turn it on again later.
Expand Down