delete_test_plan
Permanently deletes a Zephyr Scale test plan by key, removing it without undo. Use it to clear obsolete plans; linked test runs remain and must be removed separately.
Instructions
Permanently delete a test plan (DELETE /testplan/{testPlanKey}). Irreversible — there is no trash and no undo. NOT idempotent and it never confirms a deletion it did not perform: an unknown, mistyped or already-deleted key answers 404 and this tool fails instead of returning { deleted: true } (verified live). The key is not reused afterwards — the next create_test_plan gets a fresh number. Does NOT cascade to the test runs linked to the plan (verified live): the runs survive with their names, testCaseCount and status intact, only the plan↔run trace links die. Delete the runs separately with delete_test_run if that is what you meant. Returns { deleted: true, key }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| testPlanKey | Yes | Test plan key, e.g. PROJ-P123 |