static async apiDelete (req, res, next) {
    const audit = await Db.getAudit(req.params.id);
    const roles = [...await req.user.getRoles()];

    if (!audit) {
      return res.send({ success: false, text: 'History log not found' });
    }

    // permissions ---------------------------
    if (!req.user.removeEnabled) {
      return res.send({ success: false, text: 'Can not delete a history log when user has data removal disabled.' });
    }

    if (req.user.userId !== audit.userId && !roles?.includes('cont3xtAdmin')) {
      return res.send({ success: false, text: 'User does not have permission to delete this log.' });
    }
    // ----------------------------------------

    const results = await Db.implementation.deleteAudit(req.params.id);

    if (!results) {
      return res.send({ success: false, text: 'Database error' });
    }

    res.send({ success: true, text: 'Success' });
  }
DELETE - /api/audit/:id

Delete a log from history. Users can delete their own logs. Admins can delete any log.
@name /audit/:id
@returns {boolean} success - Whether the delete history log operation was successful.
@returns {string} text - The success/error message to (optionally) display.