---
title: "Deletes every plan whose key starts with a prefix — cleanup for throwaway suite plans that leaked when a run died before its afterAll (TBP-404). POST /account/test/playwright/sweep-plans Body: { appDomain: string, keyPrefix: string } (prefix min 8 chars) Returns: { deleted: string[] }"
method: POST
path: "/account/test/playwright/sweep-plans"
tags: ["account"]
---

# Deletes every plan whose key starts with a prefix — cleanup for throwaway suite plans that leaked when a run died before its afterAll (TBP-404). POST /account/test/playwright/sweep-plans Body: { appDomain: string, keyPrefix: string } (prefix min 8 chars) Returns: { deleted: string\[\] }

`POST /account/test/playwright/sweep-plans`

## Request

- Base URL: `https://api.thebridge.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.thebridge.dev/account/test/playwright/sweep-plans`
- Auth: none declared

## Request body

- SweepPlansRequestDto

## Response `201`

---

[API](https://skmtc.dev/thebridge/apis/bridge-api.md) · [All operations](https://skmtc.dev/thebridge/apis/bridge-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thebridge/apis/bridge-api/revisions/290fffcb3d80?raw)
