DELETE
/
api
/
svc
/
v1
/
workspaces
/
{id}
curl --request DELETE \
  --url https://{controlPlaneURL}/api/svc/v1/workspaces/{id} \
  --header 'Authorization: Bearer <token>'
{
  "workspace": {
    "id": "<string>",
    "fqn": "<string>",
    "name": "<string>",
    "tenantName": "<string>",
    "clusterId": "<string>",
    "createdBySubject": {
      "subjectId": "<string>",
      "subjectType": "user",
      "subjectSlug": "<string>",
      "subjectDisplayName": "<string>"
    },
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "environmentId": "<string>",
    "manifest": {
      "type": "workspace",
      "cluster_fqn": "<string>",
      "name": "<string>",
      "environment_name": "<string>",
      "labels": {},
      "annotations": {},
      "collaborators": [
        {
          "subject": "<string>",
          "role_id": "<string>"
        }
      ],
      "permissions": [
        {
          "resource_fqn": "<string>",
          "resource_type": "<string>",
          "role_id": "<string>"
        }
      ]
    },
    "isSystemWs": true,
    "createdBy": "<string>"
  },
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Workspace id of the space

Response

200
application/json
Successfully deletes the workspace and returns the workspace details along with a confirmation message.
workspace
object
message
string

Destroyed the workspace