# Delete a tier

> Refused with `409` when a live workspace is on the tier, or when the tier is the default while other tiers exist.

Source: https://docs.spicrawl.com/api-reference/partner/partner-tier-delete

## DELETE /v1/partner/tiers/{tier_id}

Operation ID: `partnerTierDelete`. API key scope: `partner`.

Refused with `409` when a live workspace is on the tier, or when the tier is the default while other tiers
exist. Move the workspaces and change the default first. A soft-deleted workspace does not hold the tier;
deleting the tier takes it off the workspace.

### Example

```bash
curl -X DELETE "https://api.spicrawl.com/v1/partner/tiers/{tier_id}" \
  -H "Authorization: Bearer $SPICRAWL_API_KEY"
```

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `tier_id` | path | string | yes | The tier's id, from the list or the create response. |

### Responses

#### 204

The tier was deleted.

#### 401

Missing, invalid, revoked or expired key. Not retryable with the same key.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 403

The key lacks the scope this route requires (`ERR::AUTH::INSUFFICIENT_SCOPE`), or the action is not permitted.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 404

No such resource for this key's organization.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 409

Conflicts with the resource's current state, for example a session in use (`ERR::SESSION::BUSY`, retryable).

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 500

Internal error. Retryable when `retryable` is true.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

Full OpenAPI spec: https://docs.spicrawl.com/openapi.yaml
