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.workspaces.remove({
force: true,
}, { workspaceId: <WORKSPACE_ID> });
curl https://api.fabric.so/v2/workspaces/<WORKSPACE_ID>?force=true \
-X DELETE \
-H 'X-Api-Key: <FABRIC_API_KEY>'