Clear Messages

This lesson covers how to delete all messages from the database which in turn erases them from your chat stream.

Set Up Your Clear Button

We start by creating an HTML button. We will add an id to it so we can attach an event listener.

Get hands-on with 1200+ tech skills courses.