gm3dmo/the-power/cleanup-test-data

Claude Code and agent skill by gm3dmo/the-power

Trust tier 2
  • community
LLM review pending
Source check pending

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-data

SKILL.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:

bash
find ~ -maxdepth 5 -name "delete-repo.sh" -path "*/the-power/*" 2>/dev/null

Safety warnings

  • Deletions are IRREVERSIBLE. There is no undo.
  • Always verify .gh-api-examples.conf points at the correct server.
  • Review the target org and repo values 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:

bash
curl -X DELETE \
-H "Authorization: token ${GITHUB_TOKEN}" \
"${GITHUB_API_BASE_URL}/orgs/${org}"

This removes the org and all its repos, teams, and other resources.

Cleanup by category

Repositories
ScriptDescription
delete-repo.sh [repo]Delete a repository from ${org}
delete-a-file.shDelete a single file
Teams
ScriptDescription
delete-team.sh <team_slug>Delete a team
delete-many-teams.shDelete all teams in nato-alphabet.txt
delete-team-member.shRemove a team member
Branch protection and rulesets
ScriptDescription
delete-branch-protection.shRemove branch protection
delete-a-repository-ruleset.shDelete a repo ruleset
delete-an-organization-repository-ruleset.shDelete an org ruleset
Webhooks
ScriptDescription
delete-webhook.shDelete a repo webhook
delete-an-organization-webhook.shDelete an org webhook
Environments
ScriptDescription
delete-environment.sh [env] [repo]Delete an environment
delete-a-deployment.shDelete a deployment
Secrets and keys
ScriptDescription
delete-an-organization-secret.shDelete an org secret
delete-a-repository-variable.shDelete a repo variable
delete-a-deploy-key.shDelete a deploy key
Other
ScriptDescription
delete-a-release-asset.shDelete a release asset
delete-a-milestone.shDelete a milestone
delete-a-reference.shDelete a git reference
delete-a-code-scanning-analysis-from-a-repository.shDelete a code scanning analysis

GHES-only: suspend and unsuspend users

ScriptDescription
suspend-a-user.sh [username]Suspend a user on GHES
unsuspend-a-user.sh [username]Unsuspend a user on GHES

Examples

bash
./delete-repo.sh my-test-repo # delete a specific repo
./delete-team.sh alpha # delete a team
./delete-environment.sh staging my-repo # delete an environment
./suspend-a-user.sh testuser # suspend a GHES user

Error handling

  • 404 — resource does not exist or was already deleted.
  • 403 — token lacks delete_repo or admin:org scope.
  • 422 — resource has dependencies that prevent deletion.

Boundaries

  • Always confirm with the user before running any delete script.
  • Verify the target instance — check hostname and org values.
  • 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/gm3dmo/the-power/cleanup-test-data/badge)](https://verified-skill.com/skills/gm3dmo/the-power/cleanup-test-data)

Something wrong with this skill or its page? Tell us.