a discor bot that clears all your messages code example
Example: discord bot clear messages
switch(args[0]){
case 'clear':
if(!args[1]) return message.reply('Error please define second argument')
message.channel.bulkDelete(args[1]);
break;
}