Deleting workspaces

Workspaces can be deleted by sending a DELETE request to the Delete workspace endpoint. By default, an email with a confirmation link is sent before the workspace is deleted. This can be overriden by specifying query parameter force=true to delete the workspace without confirmation.

import { Fabric } from '@fbrc/sdk';

const api = new Fabric({
  apiKey: process.env.FABRIC_API_KEY!,
});

await api.workspace.remove({
  force: true,
}, { workspaceId: <WORKSPACE_ID> });