---
title: "Remove a team's prompt"
method: DELETE
path: "/v1/org/prompts/teams/{teamId}"
tags: ["Organizations"]
---

# Remove a team's prompt

`DELETE /v1/org/prompts/teams/{teamId}`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/org/prompts/teams/{teamId}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Removes one team's system prompt; the prompt for everyone still applies. Requires the Manage prompts permission, a recent sign-in and the Prompts feature.

## Path parameters

- `teamId` string, typeid, required

## Response `200`

Prompt removed; the remaining prompts are returned.

- OrgPromptSettings
  - `everyone` OrgPrompt, required
    - `id` string, required
    - `name` string, required
    - `content` string, required
    - `assignment` OrgPromptAssignment, required
      - `everyone` boolean, required
      - `teamIds` string[], required
      - `memberIds` string[], required
    - `updatedAt` string, date-time, required
  - `teams` OrgPromptTeam[], required
    - `teamId` string, required
    - `name` string, required
    - `prompt` OrgPrompt, required
      - `id` string, required
      - `name` string, required
      - `content` string, required
      - `assignment` OrgPromptAssignment, required
        - `everyone` boolean, required
        - `teamIds` string[], required
        - `memberIds` string[], required
      - `updatedAt` string, date-time, required
  - `canEdit` boolean, required

## Other responses

- `401`: Authentication required.
- `403`: The caller lacks the Manage prompts permission or needs to sign in again.
- `404`: The organization or team was not found, or Prompts is off for the organization.

## Changes

- **2026-10-23** `c93387179b31`: 2 info
  - the `everyone/anyOf[#/components/schemas/OrgPrompt]/updatedAt` response's property pattern was changed from `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` to `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$` for the status `200`
  - the `teams/items/prompt/anyOf[#/components/schemas/OrgPrompt]/updatedAt` response's property pattern was changed from `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` to `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$` for the status `200`
- **2026-10-23** `d9888a758e46`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/org/prompts/teams/:teamId/delete.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/8170cf4a92ca?raw)
