---
title: "exit all position"
method: DELETE
path: "/positions"
tags: ["Positions & Portfolio"]
---

# exit all position

`DELETE /positions`

The Exit All Position API allows users to exit all active positions and cancel all open orders for the authenticated account.
Note: All open orders and positions are exited for the current trading day only.

## Headers

- `access-token` string, required

## Response `200`

Successful operation

- UserIPResponse
  - `message` string
  - `status` string — | **Enum Values** | **Description** | |-----------------|----------------| | SUCCESS | Operation was successful | | ERROR | Operation failed |

---

[API](https://skmtc.dev/dhan/apis/dhanhq-api.md) · [All operations](https://skmtc.dev/dhan/apis/dhanhq-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dhan/dhanhq-api/revisions/2d368b9ed32d/schema)
