title: Delete all messages in a text channel
body: <p>I am trying to make my Discord bot delete all messages in a text channel, but I can't figure out how to do it. This is what I have tried:</p>
  <pre class="lang-py prettyprint-override"><code>@CLIENT.command()
  async def Clear(message):
      return await CLIENT.delete_message(message)
  </code></pre>
  <p>I have tried other things and looked at other posts, but I have only found out that the bot will delete the message I type every time (not what I'm looking for).</p>