DELETE
/
open
/
workspaces
/
{workspaceId}
curl --request DELETE \
  --url https://api.opnform.com/open/workspaces/{workspaceId} \
  --header 'Authorization: Bearer <token>'

Delete Workspace

Permanently remove a workspace. This operation is irreversible and will remove all associated forms, submissions, and settings.

Authentication & Scope

Requires the workspaces-write ability. User must be an admin of the workspace.

Request

DELETE /open/workspaces/{workspaceId} HTTP/1.1
Host: api.opnform.com
Authorization: Bearer <token>

Path Parameters

ParameterTypeDescription
workspaceIdnumberID of the workspace to delete.

Response

200 OK – Confirmation message and the ID of the deleted workspace.

{
  "message": "Workspace deleted.",
  "workspace_id": 12
}

403 Forbidden – The token lacks workspaces-write or you lack permission.

Authorizations

Authorization
string
header
required

Personal Access Token

Path Parameters

workspaceId
number
required

Response

204

Deleted