async function deleteRef({ fs, dir, gitdir = join(dir, '.git'), ref }) {
  try {
    assertParameter('fs', fs)
    assertParameter('ref', ref)
    await GitRefManager.deleteRef({ fs: new FileSystem(fs), gitdir, ref })
  } catch (err) {
    err.caller = 'git.deleteRef'
    throw err
  }
}
Delete a local ref

@param {Object} args
@param {FsClient} args.fs - a file system implementation
@param {string} [args.dir] - The [working tree](dir-vs-gitdir.md) directory path
@param {string} [args.gitdir=join(dir,'.git')] - [required] The [git directory](dir-vs-gitdir.md) path
@param {string} args.ref - The ref to delete

@returns {Promise<void>} Resolves successfully when filesystem operations are complete

@example
await git.deleteRef({ fs, dir: '/tutorial', ref: 'refs/tags/test-tag' })
console.log('done')