Problem

An archived repository is read-only. On some pages, the star button does not work. You cannot remove your star in the web interface.

Fix

Use the GitHub API. The API does not block changes to your own stars. You can either use the gh cli or the curl cli.

With the gh CLI

gh api --method DELETE /user/starred/OWNER/REPO
# Example: gh api --method DELETE /user/starred/google/instant-hangouts

The command gives no output when it succeeds.

With curl

curl --request DELETE \
  --header "Authorization: Bearer <YOUR_TOKEN>" \
  --header "Accept: application/vnd.github+json" \
  https://api.github.com/user/starred/OWNER/REPO
  # Example: https://api.github.com/user/starred/google/instant-hangouts

Replace <YOUR_TOKEN> with your personal access token. A successful request returns HTTP 204 and no body.