---
title: fastly routing-config delete
summary: Delete a routing config. This is rejected if the routing config is still associated with any domain, regardless of --force; unset those associations first with 'fastly domain update --routing-config-id nil'
url: https://www.fastly.com/documentation/reference/cli/routing-config/delete
---

Delete a routing config. This is rejected if the routing config is still associated with any domain, regardless of --force; unset those associations first with 'fastly domain update --routing-config-id nil'

## Flags

| Flag | Description | Required | Default |
|------|-------------|----------|----------|
| `--routing-config-id` | The Routing Config Identifier | Yes | - |
| `--force` | Delete the routing config even if it has an active version, bypassing the active-version check. You still can't delete a routing config that's linked to a domain | 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 | - |

## Examples

### Delete a routing config

This fails if the routing config is still associated with any domain, even with --force. Unset the association first with `fastly domain update --domain-id <id> --routing-config-id nil`.

```bash
fastly routing-config delete --routing-config-id 1a2b3c4d
```

