cleanup_test_data
Remove test subscribers matching a username prefix under a domain. Companion to gen_test_subscribers. Use confirm=true to delete; otherwise returns dry-run count of matched rows.
Instructions
Remove every subscriber matching <username_prefix>NNNN under
domain. Companion to gen_test_subscribers.
Parameters
domain:
Domain whose test users to remove.
username_prefix:
Same prefix used in generation.
confirm:
Must be True to actually delete. Default False returns
the dry-run count of matched rows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | ||
| username_prefix | No | test | |
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||