deleteGroup = async group => {
  let posts = await db.query('SELECT post_id FROM posts WHERE group_id=?', [
      group,
    ]),
    dltDir = promisify(rmdir)

  for (let p of posts) {
    await deletePost({ post: p.post_id, when: 'group' })
  }

  await db.query('DELETE FROM notifications WHERE group_id=?', [group])
  await db.query('DELETE FROM group_members WHERE group_id=?', [group])
  await db.query('DELETE FROM groups WHERE group_id=?', [group])

  DeleteAllOfFolder(`${root}/dist/groups/${group}/`)
  await dltDir(`${root}/dist/groups/${group}`)
}
Deletes group
@param {Number} group GroupID