async function deleteRemote({
  fs,
  dir,
  gitdir = join(dir, '.git'),
  remote,
}) {
  try {
    assertParameter('fs', fs)
    assertParameter('remote', remote)
    return await _deleteRemote({
      fs: new FileSystem(fs),
      gitdir,
      remote,
    })
  } catch (err) {
    err.caller = 'git.deleteRemote'
    throw err
  }
}
Removes the local config entry for a given remote

@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.remote - The name of the remote to delete

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

@example
await git.deleteRemote({ fs, dir: '/tutorial', remote: 'upstream' })
console.log('done')