I just realized seed publishes environments into G...
# seed
d
I just realized seed publishes environments into GitHub, which is cool. Unfortunately even if I delete an environment in Seed does not cleanup GitHub. Is there anything I can do to cleanup inactive environments?
g
Haha yeah mine is a bit of a mess 80 environments with only 3 actually active. Would be nice if it auto cleaned
Not entirely sure how you even delete old ones from github though the ui is not very intuitive.
But something is off in my account because I don't have such things... I'll try the REST API
Ok, I managed to clean it up using the API. You need your personal access token and then you I listed all deployments:
Copy code
curl -i -u {username}:{token} \
-H "Accept: application/vnd.github.v3+json" \
<https://api.github.com/repos/{owner}/{repo}/deployments>
then deleted one by one the inactive:
Copy code
curl -i -u {username}:{token} \
-X DELETE
-H "Accept: application/vnd.github.v3+json" \
<https://api.github.com/repos/{owner}/{repo}/deployments/{id}>
f
@Davide Ungari Thanks for looking into this. We are going to take a look into this and keep you posted.