Delete a database

SDK platic.tools.databases.delete()

Delete the connection, its four catalog tools, and their connections to agents. The password secret remains in Secrets.

Example

await platic.tools.databases.delete("db_123");

Path parameters

ParameterTypeDescriptionRequired
databaseIdstringThe id of the connection✓

Response

200 OK.

{
  "status": "success",
  "message": "Connection deleted",
  "data": { "id": "Xb2mQe7LtR9sKd4fHw1N", "deleted": true }
}

Errors

Statusdetails.codeWhen it happens
403FORBIDDEN or INSUFFICIENT_SCOPEThe person behind the token does not have access to Integrations, or the token does not have write permission
404NOT_FOUNDThere is no connection with that id in the workspace
409TOO_MANY_BINDINGSThe connection is linked to too many agents to delete it at once. Disconnect it from some first

Notes

  • This cannot be undone. If you only want agents to stop using it, pause it.
  • If you no longer need the secret with the password, delete it with delete a secret.