All logs from the target system can be cleared using the clearev command:
However, if you are not a law enforcement agent, you should not clear logs from the target because logs provide important information to the blue teams to strengthen their defences. Another great module for playing with logs, known as event_manager, exists in Metasploit, as shown in the following screenshot:
Let's jump into the advanced extended features of Metasploit in the next section.