---
title: fastly auth revoke
summary: Revoke a token via the API and remove it from local config
url: https://www.fastly.com/documentation/reference/cli/auth/revoke
---

Revoke a token via the API and remove it from local config

## Flags

| Flag | Description | Required | Default |
|------|-------------|----------|----------|
| `--current` | Revoke the token used to authenticate the current request | No | - |
| `--name` | Name of a locally stored token to revoke | No | - |
| `--token-value` | Raw API token string to revoke (pass '-' to read from stdin) | No | - |
| `--id` | Alphanumeric string identifying a token to revoke | No | - |
| `--file` | Path to a newline-delimited file of token IDs to revoke in bulk | No | - |

## Global options

| Flag | Description | Required | Default |
|------|-------------|----------|----------|
| `--help` | Show context-sensitive help. | No | - |
| `--accept-defaults` | Accept default options for all interactive prompts apart from Yes/No confirmations | No | - |
| `--auto-yes` | Answer yes automatically to all Yes/No confirmations. This may suppress security warnings | No | - |
| `--debug-mode` | Print API request and response details (NOTE: can disrupt the normal CLI flow output formatting) | No | - |
| `--non-interactive` | Do not prompt for user input - suitable for CI processes. Equivalent to --accept-defaults and --auto-yes | No | - |
| `--quiet` | Silence all output except direct command output. This won't prevent interactive prompts (see: --accept-defaults, --auto-yes, --non-interactive) | No | - |
| `--token` | Fastly API token, or name of a stored auth token (use 'default' for the default token). Falls back to FASTLY_API_TOKEN env var | No | - |
| `--verbose` | Verbose logging | No | - |

