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.
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.