# summary

Reset org by removing Cuneiform test data created by NUT tests.

# description

Purges all profiling definitions matching a name pattern (default: `[NUT-*]`), cancels active profiling requests, and deletes terminal requests. Use this command to restore a scratch org to a clean state after NUT test runs.

The reset sequence is:

1. Query definitions matching the name pattern
2. Cancel any active profiling requests
3. Delete cancelled/rejected profiling requests
4. Delete definitions that have no related summaries

Definitions with related summaries are skipped — use `sf cuneiform summary purge` first to remove them.

# examples

- Reset org by removing all NUT-created test data: `sf cuneiform org reset --target-org myOrg`
- Preview what would be deleted without making changes: `sf cuneiform org reset --target-org myOrg --dry-run`
- Reset with a custom pattern: `sf cuneiform org reset --target-org myOrg --pattern "Test%"`
- Reset without confirmation prompt: `sf cuneiform org reset --target-org myOrg --no-prompt`

# flags.pattern.summary

SOQL LIKE pattern for definition names to purge.

# flags.dry-run.summary

Preview what would be deleted without making changes.

# flags.no-prompt.summary

Skip the confirmation prompt before deleting.

# spinner.querying

Querying definitions matching "%s"...

# spinner.cancelling

Cancelling active profiling requests...

# spinner.deleting-requests

Deleting terminal profiling requests...

# spinner.deleting-definitions

Deleting %d definitions...

# info.already-clean

Org is already clean — no test data found matching "%s".

# info.dry-run-header

Dry-run preview (no changes will be made):

# info.summary

Reset complete.

# errors.queryFailed

Failed to query definitions: %s

# errors.operationFailed

Org reset failed: %s
