title: remove args from ana array in discord.js
body: <p>i wanna remove an argument that i prevously added to an array with a command, the code i made:</p>
  <pre><code>const args = message.content.slice(prefix.length).split(/ +/);
  const command = args.shift().toLowerCase();
  const multipleArgs = args.slice(1).join(&quot; &quot;);
  
  const banWordAdded = new Discord.MessageEmbed()
          .setColor('#42f59b')
          .setTitle(&quot;Ban word added:&quot;)
          .setFooter(multipleArgs)
  
  const banWordRemoved = new Discord.MessageEmbed()
          .setColor('#42f59b')
          .setTitle(&quot;Ban word removed:&quot;)
          .setFooter(multipleArgs)
  
          if (banWords.some(word =&gt; message.content.toLowerCase().includes(word))) {
              message.delete()
              message.channel.send(&quot;Don't say that!&quot;);
  
      } else if (command === 'banword') {
  
          if (!message.member.hasPermission(&quot;ADMINISTRATOR&quot;)) return message.channel.send(&quot;You can't use this command&quot;)
          if (!args[0]) return message.channel.send(&quot;Choose either add or remove&quot;)
          
          if (args[0] == 'add')
  
          banWords.push(multipleArgs)
          message.channel.send(banWordAdded)
          console.log(&quot;Array updated&quot;);
  
      } else if (args[0] == 'remove') {
  
          delete banWords(multipleArgs)
          message.channel.send(banWordRemoved)
          console.log(&quot;Array updated&quot;)
  </code></pre>
  <p>It works just fine when adding a ban word, but when i wanna remove it the bot deletes the command message for containing the banword instead of removing it from the banWords array, like i do q!banword remove example and the message gets deleted</p>