# Data Deletion

This section introduces the data deletion process in the CESS network.

## Active Data Deletion

Active data refers to the data uploaded by users to the CESS network. Users have all control over the data they upload, and they have the right to delete their data.

When a user deletes their data, the data content will not be deleted from the CESS network if there are multiple owners. If data is no longer owned (has no owner), the CESS node will delete the data from the hard disk.

The overall flow is depicted as follows:

![Delete Active Data](/files/M4w6uBconzJcMDcOaXLp)

## Idle Data Deletion

The idle file is generated by consensus nodes in the TEE environment and stored in storage nodes. Each idle file is unique across the entire network. There are generally two cases where idle data needs to be deleted:

* The storage node has stored new active data and needs to delete the corresponding amount of idle data.
* The `Restore` mechanism of the storage node detects invalid idle data and requires reporting data loss and deleting the data.

The overall flow is depicted as follows:

![Delete Idle Data](/files/wxWgIket7VjzIB3gIlk7)


---

# Agent Instructions: 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:

```
GET https://doc.cess.network/ref/data-lifecycle/delete.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
