Delete a comment

If you are the website owner, you can delete comments by removing them from the appendable data associated with the current page.

Contents

Delete a comment

Delete a comment from the appendable data

The plugin moves the comment you want to delete to the deleted_data field of the appendable data associated with the current page.

DELETE /appendable-data/:handleId/:index

window.safeAppendableData.removeAt(this._authToken, this._currentPostHandleId, index)

Update the appendable data

The plugin updates the appendable data associated with the current page by sending a POST request to the SAFE Network.

POST /appendable-data/:handleId

window.safeAppendableData.post(this._authToken, this._currentPostHandleId)

Clear all deleted data from the appendable data

The plugin clears the deleted_data field of the appendable data associated with the current page.

DELETE /appendable-data/clear-deleted-data/:handleId

window.safeAppendableData.clearAll(this._authToken, this._currentPostHandleId, true)

Update the appendable data (again)

The plugin updates the appendable data associated with the current page by sending a POST request to the SAFE Network.

POST /appendable-data/:handleId

window.safeAppendableData.post(this._authToken, this._currentPostHandleId)

The plugin then reloads the comments.

Last updated

Was this helpful?