You can only delete messages or tasks which you created. To delete or edit a message simply click on the message icon hovering over the message. The right panel will open and display a delete icon. Click here to delete the icon. The messages will be marked as deleted in the chat and display a bin icon.