---
title: "Remove the workspace with the specified id."
method: DELETE
path: "/workspaces/{workspace_id}"
tags: ["workspaces"]
---

# Remove the workspace with the specified id.

`DELETE /workspaces/{workspace_id}`

This request can be performed by either the Contract’s user (the current Workspace assigned to) with the `contracts.workspace.delete` permission or just the Workspace’s user with the `workspaces.workspace.edit` permission.
* Credentials
* Agents
* DataSamples
* InviteTokens
* Lookups
* Flow’s DynamicMetadata
* Flow’s DynamicSelectModel
* Flow’s ExecStat
* Flow’s ExecutionResult
* Flow’s MarathonEvent
* Flow’s RequestBin
* Flow’s TaskHooksData
* Flow’s TaskStats
* Flow’s TaskStatError
* Flow’s TaskVersion

## Path parameters

- `workspace_id` string, required

## Response `204`

No Content

- object

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/elastic/apis/elastic-io-rest-api-documentation-v2.md) · [All operations](https://skmtc.net/elastic/apis/elastic-io-rest-api-documentation-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/elastic-io-rest-api-documentation-v2/revisions/411f9f98c01e/schema)
