For the complete documentation index, see llms.txt. This page is also available as Markdown.

Delete Workspace

Learn how to delete a workspace.

In cases where your workspace has become redundant, and you no longer need it, you can delete it from your Harness account. As a safeguard, Harness has several confirmation steps to ensure that workspaces aren't mistakenly deleted.

Prerequisites

  • Ensure that the resources associated with your workspace are no longer needed.

  • Your workspace must be in an inactive status

If your workspace already has an inactive status, you can delete a workspace via the Harness API destroy-workspace endpoint.

curl -i -X DELETE \
https://apidocs.harness.io/openapi-merged/iacm/api/orgs/{org_id}/projects/{project_id}/workspaces/{workspace_id} \
-H 'Harness-Account: {harness_account_id}' \
-H 'x-api-key: {api_key}'

DEACTIVATE WORKSPACE

If your workspace is still active, deactivate it before calling the above endpoint with a destroy-workspace pipeline.

Last updated

Was this helpful?