class Git::Commands::UpdateRef::Delete

Deletes a ref via ‘git update-ref -d`

Removes the named ref after optionally verifying it still contains ‘<oldvalue>`. Follows symbolic refs by default unless `no_deref: true` is given.

@example Delete a branch ref

cmd = Git::Commands::UpdateRef::Delete.new(execution_context)
cmd.call('refs/heads/old-branch')

@example Delete with old-value verification

cmd = Git::Commands::UpdateRef::Delete.new(execution_context)
cmd.call('refs/heads/old-branch', 'expected-sha')

@note ‘arguments` block audited against git-scm.com/docs/git-update-ref/2.53.0

@see Git::Commands::UpdateRef

@see git-scm.com/docs/git-update-ref git-update-ref documentation

@api private