Trillet AI logo

Delete Workspace

Delete an existing workspace. Only the owner of the workspace can delete it. Master workspaces and the user's only remaining workspace cannot be deleted.

DELETEhttps://api.trillet.ai/v1/api/workspaces/{workspaceId}

Path Parameters

workspaceIdstringrequired

The unique identifier of the workspace to delete.

Headers

x-workspace-idstringrequired

The workspace ID being accessed (should match the path parameter).

Description

This endpoint allows the authenticated owner of a workspace to delete it, subject to the following restrictions:

  • The workspace cannot be the master workspace.
  • The workspace cannot be the user's only remaining workspace.
  • The requester must be the owner of the workspace (team members are not authorized).

If the workspace contains external members, their access is revoked before deletion. The associated workspace wallet is also deleted as part of this operation.

Response Fields

successboolean

Indicates whether the workspace was successfully deleted.

Delete Workspace — Trillet AI