Create
Usage
Import the Forget declaration to interact with the Publish function and the Item type to choose your storage location.
Then call the publishForget function, with the required parameters as follow:
Parameters
account - required Account | The Account to sign the message. It also needs to be the owner of the messages to forget. |
hashes - required array of strings | A list of original message item hashes to forget. Multiple can be passed at once. |
channel - required string | Channel of the message. Ideally, an application would decide and use one channel. |
reason - optional string | Optional description of why the messages should be forgotten. |
storageEngine - optional ItemType | The storage engine to use when storing the object (IPFS, inline or Aleph) |
APIServer - optional string | The API server endpoint used to carry the request to the Aleph's network. |
Example: Forget a Post message
If you run this code, the postData will be empty because the Item_content of the post doesn't exist anymore.
Last updated