> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tokensupply.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete an order

> Remove an order from your lists, and what happens to its keys, its delivery link, and any tickets that point to it.

Deleting an order takes it off your orders list for good. What happens behind the scenes depends on whether its keys already reached a buyer, because a key that has been delivered cannot be taken back.

<Info>
  To reverse a sale, you usually want a refund or a cancellation rather than a delete. Both keep the order on record. See [How fulfilment works](/guides/selling-fulfilment/how-fulfilment-works).
</Info>

## Who can delete an order

You need **Manage** access to Orders. Deleting is available on any order, whatever its status.

## Delete the order

<Steps>
  <Step title="Open the order">
    Go to **Orders** and open the order. The orders list has no delete action of its own.
  </Step>

  <Step title="Choose Delete Order">
    Open the actions menu and choose **Delete Order**.
  </Step>

  <Step title="Confirm">
    Select **Delete**. The order leaves your list and you return to **Orders**.
  </Step>
</Steps>

<Warning>
  The confirmation says linked inventory returns to available stock. That is only true for an order whose keys were never delivered. Keys on a delivered order stay sold, as described below.
</Warning>

## What happens to the keys

| Order status                            | What deleting does                                                                                                                                                  |
| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Pending, Reserved, Cancelled, or Failed | Any keys still held for the order are released back to **Available** stock, then the order is removed completely.                                                   |
| Delivered or Completed                  | The order is hidden from your lists, but its record is kept. Its keys stay **Sold** and stay linked to it, so you can still trace each one.                         |
| Refunded                                | The order is hidden from your lists, but its record is kept. Its keys are handled by the refund, which releases them back to stock, so deleting does not move them. |

<Note>
  Keeping the record of a delivered order means the buyer's delivery link keeps working after you delete it, and its order number is never reused. A refunded order's link was already revoked by the refund, so it stays revoked.
</Note>

## If the delete is refused

Deleting an order whose keys are still being delivered can be refused, for example when fulfilment is in progress at that moment. The message names the order and how many reserved keys it still holds, and asks you to try again once fulfilment settles. Wait a moment, then delete it again. The order is left untouched until the delete succeeds, so no key is lost along the way.

## Tickets and keys that point to a deleted order

A support ticket raised against an order keeps its order reference after the order is deleted. The ticket shows the order ID with the warning "This order might have been deleted." Following the link to the order opens an **Order not found** page with the same message.

On a product's keys page, a sold key from a deleted order still shows the order number it was sold on. Selecting it opens the same **Order not found** page.

## Next

<CardGroup cols={2}>
  <Card title="How fulfilment works" icon="key" href="/guides/selling-fulfilment/how-fulfilment-works">
    Refund or cancel an order instead of deleting it.
  </Card>

  <Card title="Key details" icon="magnifying-glass" href="/guides/products-inventory/key-details">
    Follow a key's history on its product's keys page.
  </Card>
</CardGroup>
