What happens to starred gists or repos when they are deleted?

Topic:

What happens to starred gists or repos when they are deleted?

Situation:

I forked a repo. The original got removed. As the documention says, another fork will be selected as the new “master” and all other forks will get linked to it.

Conclusion:

If there is no other fork, my would become the new master.

Question 1:

But, what happens, when neither me or no one else forked it, but only starred?

Is it silently removed and gone forever?

Question 2:

Is it then better to have a fork instead of star?

Hey @markuszeller, if a repo is starred and then subsequently deleted, the star will disappear along with the repo once it’s deleted. If you want to preserve a copy of the code, forking seems like a logical alternative. 

1 Like

should it also remove stars from the user who starred the repo?

because i’m seeing 4 stars that i gave on my personal page, but it only shows 2 starred repos:

I was able to get starred repos using api:

    "full_name": "kanashimia/nixos",
    "full_name": "cole-mickens/nixcfg",
    "full_name": "TechBookHunter/Free-Career-Guide-Books",
    "full_name": "TechBookHunter/Free-DevOps-Books",

the latter i guess was just removed.

should the stars also be removed from the user profile as well?