test-data-cleanup

Identify and delete test-created records across multi-tenant databases with previews.

4|1|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/MattVOLTA/outworkos_diy --skill test-data-cleanup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-data-cleanup
Source: https://github.com/MattVOLTA/outworkos_diy/tree/main/skills/plugins/qa-tools/skills/test-data-cleanup
Command: npx skills add https://github.com/MattVOLTA/outworkos_diy --skill test-data-cleanup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cleaning up test data across multi-tenant environments can be risky and error-prone if manual deletion is attempted without safety checks. This skill analyzes tenant structure, identifies test-created tenants (empty shells) and records with "Test" patterns, and ensures only safe data is removed after a preview and confirmation.

Core Features & Use Cases

  • Pattern-based cleanup: targets data whose names or emails contain "Test" patterns.
  • Tenant-aware deletion: respects foreign-key dependencies to avoid orphaned records.
  • Preview before deletion: shows a safe summary before any destructive operation.
  • Guided workflows for test environments: helps QA and dev teams clean up after tests.

Quick Start

Run the cleanup workflow on a test database to preview and optionally delete test data after reviewing the suggested changes.

Frequently Asked Questions about test-data-cleanup

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

FAQPage Schema
How do I safely delete test data across multi-tenant SQL databases?

To safely delete test data in multi-tenant databases, you need a workflow that identifies test-created tenants and records matching 'Test' patterns, previews the affected data, and enforces a dependency-aware deletion order to preserve referential integrity before requiring user confirmation.

How does referential integrity factor into cleaning up test-created tenant records?

Referential integrity is maintained during test data cleanup by reading the tenant structures and using a dependency-aware deletion order, ensuring foreign-key dependencies are respected and preventing orphaned records when removing test-created tenants and test-pattern data.

Can I preview test data before deletion to avoid accidentally removing real records?

Yes, you can preview test data before deletion. The cleanup process generates a safe summary of identified test-created tenants and 'Test' pattern records, prompting for user confirmation to review the suggested changes before executing any destructive delete operations.

What is the best way to identify empty test tenants and test-pattern records for cleanup?

The best way to identify empty test tenants and test-pattern records is by using pattern-based cleanup that targets data whose names or emails contain 'Test' patterns, reading the tenant structures to safely distinguish test-created shells from actual operational data.

Does this test data cleanup workflow require specific SQL compatibility to read tenant structures?

Yes, this test data cleanup workflow requires SQL compatibility to read tenant structures, identify test-created tenants, and execute dependency-aware deletions while preserving referential integrity across multi-tenant database environments.

Why does deleting test data manually in multi-tenant environments create orphaned records?

Deleting test data manually creates orphaned records because it typically lacks dependency-aware deletion order, failing to respect foreign-key dependencies and tenant structures, which leads to broken referential integrity across the multi-tenant database.