I just need to know how to erase a comment on a Confluence page. Thanks.
You can delete a comment or an inline-comment the same way. You can always erase a comment you made, unless there is an answer to it. In that case, you will need space admin permission to do so.
Here you can see the documentation from Atlassian about the comments: