## Archive a workspace `client.WorkspaceAdmin.Archive(ctx, workspaceID) error` **delete** `/v1/account/workspaces/{workspaceId}` Archives a workspace (soft delete). The workspace is retained, but any subsequent request scoped to it returns a permission error. Archiving the account's last active (non-archived) workspace is not allowed and returns FailedPrecondition. Admin only. ### Parameters - `workspaceID string` ### Example ```go package main import ( "context" "github.com/cadenya/cadenya-go" "github.com/cadenya/cadenya-go/option" ) func main() { client := cadenya.NewClient( option.WithAPIKey("My API Key"), ) err := client.WorkspaceAdmin.Archive(context.TODO(), "workspaceId") if err != nil { panic(err.Error()) } } ```