title: Document Not Deleting findoneanddelete mongoose
body: <p>I have this code that is supposed to delete a document:</p>
  <pre><code>const groups = require('./groups')
  const ingroups = require('./ingroups')
      const leavegroup = await ingroups.findOne({User:message.author.id})
      //Remove 1 from the member count
      if (!leavegroup) {
      return message.reply('You are not in a group and therefore you cannot leave one.')
  }
      message.reply('You have now left the group and are free to go join another one.')
      ingroups.findOneandDelete({User:message.author.id})
    }
  </code></pre>
  <p>It returns You have now left the group and are free to go join another one but doesn't actually delete the document in the database.</p>
  <p>How would I make it delete the doc?</p>