# remove_deployment

`tools/call` · `POST /agent/v1/deployments:remove`

Remove a product's deployment to an environment. Vault pulls for the pair are refused from then on; its secret values return if the product is deployed there again. Refused while the product or environment is archived. Returns removed: true with the product and environment slugs. Needs write access.

- Area: Catalog
- Needs the write grant. Destructive. Idempotent.

## Inputs

- `product` (string, required): The product's slug, such as storefront.
- `environment` (string, required): The environment's slug, such as staging.

## Request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "remove_deployment",
    "arguments": {
      "product": "storefront",
      "environment": "staging"
    }
  }
}
```

## HTTP request

The same call over the agent HTTP API, with an agent OAuth access token:

```bash
curl -X POST https://api.qa.clankership.net/agent/v1/deployments:remove \
  -H "Authorization: Bearer $CLANKER_AGENT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "product": "storefront",
    "environment": "staging"
  }'
```
