> For the complete documentation index, see [llms.txt](https://huongdan.cnvloyalty.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://huongdan.cnvloyalty.com/tinh-nang/don-hang/tat-ca-don-hang/xoa-don-hang.md).

# Xóa đơn hàng

## Điều kiện xóa đơn hàng

* Chỉ có thể thực hiện xóa từng đơn hàng, không thể xóa cùng lúc nhiều đơn hàng
* Chỉ đơn hàng ở trạng thái [**Hủy**](https://huongdan.cnvloyalty.com/tinh-nang/don-hang/tat-ca-don-hang/huy-don-hang) mới có thể xóa đơn hàng

{% hint style="warning" %}
Sau khi Xóa đơn hàng thành công sẽ *xóa tất cả dữ liệu* của đơn hàng đó khỏi hệ thống Loyalty Hub, **không thể tìm kiếm và phục hồi** đơn hàng đã xóa
{% endhint %}

## Các bước Xóa đơn hàng

### Bước 1: Vào Đơn hàng → Tất cả đơn hàng

Chọn đơn hàng muốn xóa:

![](/files/-Mci3FYfNj1jqEEPLkBX)

### Bước 2: Chọn Xóa đơn hàng

![](/files/SI1acVhBFmqBDyPRmz2x)

Sau khi *Xóa đơn hàng* thành công, tất cả dữ liệu của đơn hàng sẽ xóa khỏi hệ thống CNV

### Đơn hàng đã xóa có tạo vận đơn

* Nếu đơn hàng đã xóa có [tạo vận đơn](https://huongdan.cnvloyalty.com/tinh-nang/don-hang/tat-ca-don-hang/xu-ly-don-hang#buoc-6-tao-van-don) và chuyển sang trạng thái Vận chuyển

#### Bước 3: Vào Vận chuyển

* Chọn Mã đơn hàng vừa xóa

![](/files/-MciB9OA5NKBCPeLRy2c)

{% hint style="info" %}
Đơn hàng đã xóa sẽ tự động chuyển Trạng thái vận chuyển sang Hủy
{% endhint %}

#### Giao diện Đơn hàng đã xóa

![](/files/-MciB_w1v9fkmNTe4Cyi)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://huongdan.cnvloyalty.com/tinh-nang/don-hang/tat-ca-don-hang/xoa-don-hang.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
