To remove a remote repository in Git, you can use the following command:
git remote remove <remote-name>
Replace <remote-name> with the name of the remote repository you wish to remove (e.g., origin).
Alternatively, you can use the shorthand:
git remote rm <remote-name>
After executing this command, the specified remote repository will be removed from your Git configuration.