---
title: "Removes a lot as though it had never been recorded. Use this for something entered by mistake — a sale is recorded by closing the lot, which keeps its realized profit and loss. This cannot be undone."
method: DELETE
path: "/v1/portfolios/{id}/lots/{lotId}"
tags: ["Portfolios"]
---

# Removes a lot as though it had never been recorded. Use this for something entered by mistake — a sale is recorded by closing the lot, which keeps its realized profit and loss. This cannot be undone.

`DELETE /v1/portfolios/{id}/lots/{lotId}`

## Request

- Base URL: `https://api.equibles.com`
- URL: `https://api.equibles.com/v1/portfolios/{id}/lots/{lotId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/equibles/apis/equibles-api/docs/v1/portfolios/:id/lots/:lotId/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, uuid, required
- `lotId` string, uuid, required

## Response `204`

No Content

## Other responses

- `400`: Invalid request — a malformed parameter value or a query parameter this endpoint does not support.
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/equibles/apis/equibles-api.md) - [All operations](https://skmtc.dev/equibles/apis/equibles-api/llms.txt) - [OpenAPI document](https://skmtc.dev/equibles/apis/equibles-api/revisions/666e06778588?raw)
