Deleting bases

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

import { Exabase } from '@exabase/sdk';

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

await api.bases.remove({
  force: true,
}, { baseId: <BASE_ID> });
curl https://api.exabase.io/v2/bases?force=true \
  -X DELETE \
  -H 'X-Api-Key: <EXABASE_API_KEY>'
  -H 'X-Exabase-Base-Id: <BASE_ID>'