how to purge previouisly sent messages with discord.py code example
Example: delete message discord.py
@client.event
async def on_message(message):
await message.delete()
@client.event
async def on_message(message):
await message.delete()