test-user-cleanup

Delete test user accounts from databases using configured patterns and safety checks.

Updated Feb 20, 2026
One-click install
npx skills add https://github.com/mdmagnuson-creator/yo-go --skill test-user-cleanup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-user-cleanup
Source: https://github.com/mdmagnuson-creator/yo-go/tree/main/skills/test-user-cleanup
Command: npx skills add https://github.com/mdmagnuson-creator/yo-go --skill test-user-cleanup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cleaning up test user accounts created during automated testing to prevent database pollution and ensure privacy in CI environments.

Core Features & Use Cases

  • Auto cleanup modes (manual, auto, scheduled) with safety checks to avoid production data.
  • Pattern-based selection and age-based filtering to target only test users.
  • Use Case: After a test run, automatically remove all test accounts matching the configured pattern to restore a clean environment.

Quick Start

Run the cleanup script after tests to remove all test users that match the configured pattern.

Frequently Asked Questions about test-user-cleanup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I purge test users from my database after automated testing?

To purge test users after automated testing, run a cleanup script that identifies and deletes accounts matching your configured pattern. The tool reads project.json for configuration and removes matching test data to restore a clean database environment.

Can I run test data cleanup automatically in a CI pipeline?

Yes, you can run test data cleanup automatically in a CI pipeline. The tool supports manual, auto, and scheduled trigger modes, allowing it to automatically remove test user accounts after E2E test runs complete.

Does test user cleanup have safety checks to prevent deleting production data?

Test user cleanup enforces safety checks to block production data from being deleted. It uses pattern-based selection and age-based filtering to target only test accounts, ensuring real user data remains protected during the cleanup process.

How do I audit which test users will be deleted before actually removing them?

To audit which test users will be deleted, run the cleanup tool in dry-run mode. Dry-run mode identifies and lists matching test accounts based on your configured patterns without actually deleting them, allowing you to verify the selection first.

What is the best way to remove test accounts created during E2E testing?

The best way to remove test accounts created during E2E testing is using a dedicated cleanup tool with pattern-based selection. It targets only accounts matching your test patterns and supports scheduled triggers to maintain a clean database automatically.

Do I need to configure project.json to use automated test user cleanup?

Yes, you need to configure project.json to use automated test user cleanup. The tool reads project.json for cleanup configuration, including the patterns and filters needed to identify which test user accounts should be removed from the database.