---
title: "Delete orders"
method: DELETE
path: "/api/v1/orders"
tags: ["Orders"]
---

# Delete orders

`DELETE /api/v1/orders`

This endpoint schedules an asynchronous order deletion job.<br/>Supported deletion criteria:<br/>• externalOrderId (deletes the order with the specified externalOrderId), or<br/>• from and to (deletes orders whose occurrence timestamp falls within the specified period).

## Query parameters

- `externalOrderId` string
- `from` string
- `to` string

## Response `200`

Request parameters are valid and the deletion job is accepted for processing

## Other responses

- `400` — Incorrect input data:<br><ul><li>Provide either <code>externalOrderId</code>, or both <code>from</code> and <code>to</code> parameters.</li><li><strong>Invalid date format.</strong> Supported: <code>yyyy-MM-dd'T'HH:mm:ss</code> — e.g. <code>2024-12-31T23:59:59</code> (UTC).</li><li>Start date (<code>from</code>) must be before end date (<code>to</code>).</li><li>Date range cannot exceed <code>24</code> hours.</li></ul>

---

[API](https://skmtc.net/esputnik/apis/esputnik-com.md) · [All operations](https://skmtc.net/esputnik/apis/esputnik-com/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/esputnik/esputnik-com/versions/1c4afd7ba72a/schema)
