This program uses the "go-github" Go library to delete all public repositories of a GitHub user.
Before using this program, you need to obtain a personal access token from GitHub. To do so, follow these steps:
- Log in to your GitHub account.
- Click on your avatar in the upper-right corner and select "Settings" from the dropdown menu.
- Click on "Developer settings" on the left-hand menu.
- Select "Personal access tokens" from the left-hand menu.
- Click on "Generate new token".
- Give your token a name and select the necessary permissions.
- Click on "Generate token".
Copy and paste the generated token into the source code file in the "token" variable.
- Clone or download the repository.
- Open the main.go file in a code editor.
- Replace "username" with the GitHub username of the user whose public repositories you want to delete.
- Run the program in your preferred Go environment.
Note: Be careful when using this program as it permanently deletes public repositories.