> ## Documentation Index
> Fetch the complete documentation index at: https://docs.allium.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Teardown pipeline

> Removes deployed infrastructure while preserving the config.

```
POST /api/v1/beam/{config_id}/teardown
```

Removes the deployed infrastructure (workers, Kafka topics, subscriptions). The pipeline config is preserved — you can redeploy later.

Use [delete](/beam/api-reference/configs/delete-pipeline) instead if you want to remove the config entirely.

**Path parameters:**

| Parameter   | Description               |
| :---------- | :------------------------ |
| `config_id` | Pipeline configuration ID |

```bash theme={null}
curl -X POST https://api.allium.so/api/v1/beam/${CONFIG_ID}/teardown \
  -H "X-API-Key: ${ALLIUM_API_KEY}"
```

**Response:**

```json theme={null}
{ "message": "Pipeline abc123 successfully torn down" }
```
