The close() method of the Notification interface is used to close/remove a previously displayed notification.
close()
MDN Reference