Python Question

So, if I’m making a Discord Bot, is there a way to have in the code to remove a message on discord by a player or the bot? I’m trying to add a chat moderation bot.