gm3dmo/the-power/cleanup-test-data
Claude Code and agent skill by gm3dmo/the-power
- community
Checking that the SKILL.md file is still in the repository.
Clean up GitHub resources created by the-power test environment scripts. Delete repositories, teams, members, rulesets, webhooks, environments, and other resources. Suspend or unsuspend users on GHES.
Install
npx vskill@latest install gm3dmo/the-power/cleanup-test-dataSKILL.md
Cleanup Test Data
Remove resources created by the-power scripts.
Working directory
All cleanup scripts must be run from the root of a the-power clone.
Find an existing clone:
Safety warnings
- Deletions are IRREVERSIBLE. There is no undo.
- Always verify
.gh-api-examples.confpoints at the correct server. - Review the target
organdrepovalues before deleting. - GHES-only operations (suspend/unsuspend) will not work on github.com.
Quick cleanup: delete the org
The fastest way to clean up everything is to delete the entire org:
This removes the org and all its repos, teams, and other resources.
Cleanup by category
Repositories
| Script | Description | |
|---|---|---|
delete-repo.sh [repo] | Delete a repository from ${org} | |
delete-a-file.sh | Delete a single file |
Teams
| Script | Description | |
|---|---|---|
delete-team.sh <team_slug> | Delete a team | |
delete-many-teams.sh | Delete all teams in nato-alphabet.txt | |
delete-team-member.sh | Remove a team member |
Branch protection and rulesets
| Script | Description | |
|---|---|---|
delete-branch-protection.sh | Remove branch protection | |
delete-a-repository-ruleset.sh | Delete a repo ruleset | |
delete-an-organization-repository-ruleset.sh | Delete an org ruleset |
Webhooks
| Script | Description | |
|---|---|---|
delete-webhook.sh | Delete a repo webhook | |
delete-an-organization-webhook.sh | Delete an org webhook |
Environments
| Script | Description | |
|---|---|---|
delete-environment.sh [env] [repo] | Delete an environment | |
delete-a-deployment.sh | Delete a deployment |
Secrets and keys
| Script | Description | |
|---|---|---|
delete-an-organization-secret.sh | Delete an org secret | |
delete-a-repository-variable.sh | Delete a repo variable | |
delete-a-deploy-key.sh | Delete a deploy key |
Other
| Script | Description | |
|---|---|---|
delete-a-release-asset.sh | Delete a release asset | |
delete-a-milestone.sh | Delete a milestone | |
delete-a-reference.sh | Delete a git reference | |
delete-a-code-scanning-analysis-from-a-repository.sh | Delete a code scanning analysis |
GHES-only: suspend and unsuspend users
| Script | Description | |
|---|---|---|
suspend-a-user.sh [username] | Suspend a user on GHES | |
unsuspend-a-user.sh [username] | Unsuspend a user on GHES |
Examples
Error handling
- 404 — resource does not exist or was already deleted.
- 403 — token lacks
delete_repooradmin:orgscope. - 422 — resource has dependencies that prevent deletion.
Boundaries
- Always confirm with the user before running any delete script.
- Verify the target instance — check
hostnameandorgvalues. - Do not delete resources you did not create on shared instances.
- Do not display the GITHUB_TOKEN. Show only the first 8 characters.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcopilot-plugin/skills/cleanup-test-data/SKILL.md
Popularity
- Repository stars
- 216
- Repository forks
- 46
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 31 May 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gm3dmo/the-power/cleanup-test-data)