DELETE

This section introduces the process of deleting idle/active data in CESS network.

Delete active data

Active data refers to the data uploaded by users to the CESS network. Users have all controls over the data they uploaded, so only they can delete those data.

When the user deletes their own data, if there are other data owners, the data content will not be deleted from the CESS network. If data has no owners, the storage node space management mechanism will delete the data from the hard disk.

The overall process is depicted as follows:

Delete idle data

Idle file is generated by consensus nodes in 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:

  1. The storage node has stored new active data and needs to delete the corresponding amount of idle data;

  2. The Restore mechanism of the storage node detects invalid idle data, and needs to report data loss and delete the data

The overall process is depicted in the following figure: