---
title: "Delete an unused uploaded source version"
method: DELETE
path: "/platform/deployments/custom/contexts/{context_id}"
tags: ["Platform"]
---

# Delete an unused uploaded source version

`DELETE /platform/deployments/custom/contexts/{context_id}`

## Request

- Base URL: `https://api.imprezahost.com/v1`
- URL: `https://api.imprezahost.com/v1/platform/deployments/custom/contexts/{context_id}`
- Auth: API key in header `X-API-Key` and API key in header `X-API-Secret`

Manage scope. Removes archive and metadata. Refuses any active app reference. Does not uninstall apps or remove persistent volumes.

## Response `200`

deleted true and context_id

## Other responses

- `404`: Resource not found
- `409`: Source remains referenced by an app

---

[API](https://skmtc.dev/imprezahost/apis/impreza-host-public-api.md) · [All operations](https://skmtc.dev/imprezahost/apis/impreza-host-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/imprezahost/apis/impreza-host-public-api/revisions/db86511f604f?raw)
