---
title: "Delete Workspace Data"
method: DELETE
path: "/router/v1/clusters/{cluster_id}/workspace-data"
tags: ["clusters"]
---

# Delete Workspace Data

`DELETE /router/v1/clusters/{cluster_id}/workspace-data`

Delete Oogway data for one workspace in a single API call.

The request body carries the workspace-specific identifiers to remove
(email hashes, slack team IDs, external integration IDs, OAuth client
IDs, invite tokens, and device-grant user codes).  Only the supplied
rows that belong to *cluster_id* are deleted, using the same
cluster-ownership guard and cluster-scoped DELETE pattern as the PR
#158 bulk-DELETE endpoints.

All deletions run in one database transaction.  Non-existent identifiers
are silently ignored (idempotent).

Returns:
    ``True`` on success.

## Path parameters

- `cluster_id` string, required

## Headers

- `x-cluster-key` string

## Request body

- DeleteWorkspaceDataRequest — Identifiers for one workspace's Oogway rows, grouped by table.
  - `email_hash_list` string[]
  - `slack_team_id_list` string[]
  - `external_integrations` WorkspaceExternalIntegrationDelete[]
    - `external_id_list` string[], required
    - `integration_type` 'MS_TEAMS', required — This enum defines all external service integrations that can be mapped to clusters via external identifiers.
  - `client_ids` string[]
  - `creator_tokens` string[]
  - `cp_tokens` string[]
  - `user_codes` string[]

## Response `200`

Successful Response

- boolean

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/spotdraft/apis/oogway-be-router.md) · [All operations](https://skmtc.net/spotdraft/apis/oogway-be-router/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spotdraft/oogway-be-router/revisions/f92921096bd7/schema)
