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 { Exabase } from '@exabase/sdk';
const api = new Exabase({
apiKey: process.env.EXABASE_API_KEY!,
});
await api.workspaces.remove({
force: true,
}, { workspaceId: <WORKSPACE_ID> });
curl https://api.exabase.io/v2/workspaces/<WORKSPACE_ID>?force=true \
-X DELETE \
-H 'X-Api-Key: <EXABASE_API_KEY>'