---
title: "Inactivate Portfolio By ID"
method: DELETE
path: "/v1/rebalancing/portfolios/{portfolio_id}"
tags: ["Rebalancing"]
---

# Inactivate Portfolio By ID

`DELETE /v1/rebalancing/portfolios/{portfolio_id}`

Archives a portfolio (soft delete). Only permitted when the portfolio has no active subscriptions. Archived portfolios are hidden from the default list response and cannot be used for new subscriptions.

## Response `204`

No Content

## Other responses

- `400` — Bad Request
- `422` — Unprocessable Entity

---

[API](https://skmtc.net/alpacahq/apis/gift-city-extensions-api.md) · [All operations](https://skmtc.net/alpacahq/apis/gift-city-extensions-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/alpacahq/gift-city-extensions-api/revisions/62e3378bb273/schema)
