title: discord bot - delete all channels in a discord server using discord.js v13
body: <p>I need to delete all the channels with a certain name in my discord server using discord js v13.</p>
  <p>For example if there are 5 channels with the name &quot;general&quot; then I want to delete them and make sure that the rest of the channels don't get deleted. All the posts that I found were for v12.</p>
  <p>I'm pretty new to discord.js, so I would appreciate some help!</p>
  <p>This is my code:</p>
  <pre><code>// Require the necessary discord.js classes
  const { Client, Intents } = require('discord.js');
  const { token } = require('./config.json');
  
  // Create a new client instance
  const client = new Client({ intents: [Intents.FLAGS.GUILDS] });
  
  // When the client is ready, run this code (only once)
  client.once('ready', () =&gt; {
      console.log('Ready!');
  
  });
  
  // Login to Discord with your client's token
  client.login(token);
  
  
  </code></pre>