async function deleteArchive (key) {
  const path = getArchiveMetaPath(key)
  const info = await jetpack.inspectTreeAsync(path)
  await Promise.all([
    db.run(`DELETE FROM archives WHERE key=?`, key),
    db.run(`DELETE FROM archives_meta WHERE key=?`, key),
    jetpack.removeAsync(path)
  ])
  return info ? info.size : 0
}
@description Delete all db entries and files for an archive.
@param {string} key
@returns {Promise<number>}