My coworker accidentally followed all of the repos we have in our organization, although we only intend to run CI on one repo. He has unfollowed them, but they still show up in our “projects” and seem to attempt to build, although we have not circleci config for them. Is there a way to remove these other repos we don’t want “seen” by CircleCI at all? I have found a few topics about this, but can’t figure out how to remove these other repos entirely.
please save the following as
TOKEN="x" ORG="MyOrgName" URL_SUFFIX="/enable?circle-token="$TOKEN URL_PREFIX="https://circleci.com/api/v1.1/project/github/"$ORG"/" while IFS='' read -r repo || [[ -n "$repo" ]]; do sleep 2 curl -X "DELETE" $URL_PREFIX$repo$URL_SUFFIX done < "$1"
Enter your user token and pass in a list of repos as an argument like this:
repo1 repo2 repo3
This will easily mass unfollow and remove accidentally added projects.
Remove projects that were accidentally added?
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.