---
title: "Archive a storage option of a plan"
method: DELETE
path: "/subscription/plans/{plan_id}/storage-options/{option_id}"
tags: ["Subscription Plans"]
---

# Archive a storage option of a plan

`DELETE /subscription/plans/{plan_id}/storage-options/{option_id}`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/subscription/plans/{plan_id}/storage-options/{option_id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

Retires the option so it can no longer be chosen. It is never hard-deleted: subscriptions already billed at that size still point at it.

## Path parameters

- `plan_id` integer, required
- `option_id` integer, required

## Response `200`

Request fulfilled, document follows

- PlanStorageOptionResponseSchema
  - `storage_option` PlanStorageOptionAdminSchema, required
    - `id` integer, required
    - `plan_id` integer, required
    - `storage_gb` integer, required
    - `monthly_price` number, required
    - `annual_price` number, required
    - `status` string, required
  - `message` string, nullable

## Other responses

- `400`: Bad request syntax or unsupported method

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/fe078afe239b?raw)
