github remove main branch in remote code example
Example 1: remove git remote
git remote remove origin
Example 2: Delete a Git Branch In Local And Remotely
git push <remote_name> --delete <branch_name>
git remote remove origin
git push <remote_name> --delete <branch_name>