class Git::Commands::Remote::SetUrlDelete

‘git remote set-url –delete` command

Removes all URLs matching a regex from the named remote’s configured URL list. By default operates on fetch URLs; pass ‘push: true` to target push URLs instead.

@example Delete a fetch URL matching a pattern

set_url_delete = Git::Commands::Remote::SetUrlDelete.new(execution_context)
set_url_delete.call('origin', 'github')

@example Delete a push URL matching a pattern

set_url_delete = Git::Commands::Remote::SetUrlDelete.new(execution_context)
set_url_delete.call('origin', 'github', push: true)

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

@see Git::Commands::Remote

@see git-scm.com/docs/git-remote git-remote

@api private