Actions8
Delete Database
AI-generatedSummary
Deletes a specified Azure Cosmos DB database and all its contained containers.
Inputs
- authenticationType — The authentication method to use for connecting to Azure Cosmos DB. Defaults to master key if not specified. Select 'Microsoft Entra ID' to use OAuth2 authentication via Azure AD when set to 'entraId'. The chosen method determines which credential set is required at runtime (azureCosmosSdkApi for master key, azureCosmosSdkEntraIdApi for Entra ID).
- databaseToDelete (required) — The database to delete. Supports three selection modes: 'From List' (searchable dropdown querying all databases via getDatabases), 'By Name' (free-text entry validated against
^[a-zA-Z0-9_-]+$), or 'By ID' (free-text entry with the same naming regex). This parameter is only visible when the operation is set to 'deleteDatabase'.
Output shape
json
On successful deletion, returns an object with
success: true, thedatabaseId(string value of the deleted database), and amessageconfirming deletion. If the database does not exist, the node throws an error with message 'Database {id} not found' (HTTP 404). When 'continue on fail' is enabled, the error is captured as{ error: error.message }instead of halting the workflow.