Azure Databricks · Arazzo Workflow

Azure Databricks Terminate and Permanently Delete a Cluster

Version 1.0.0

Terminate a cluster, wait until TERMINATED, then permanently delete it.

1 workflow 1 source API 1 provider
View Spec View on GitHub AnalyticsApache SparkBig DataData EngineeringMachine-LearningArazzoWorkflows

Provider

microsoft-azure-databricks

Workflows

terminate-and-purge-cluster
Terminate a cluster, wait for TERMINATED, then permanently delete it.
Terminates the cluster, polls getCluster until the state is TERMINATED, then permanently deletes the cluster.
3 steps inputs: clusterId, token outputs: clusterId, finalState
1
terminateCluster
Terminate the cluster. The cluster is removed from the running state but its configuration is preserved until permanent deletion.
2
pollCluster
Retrieve the current cluster state. Repeat until the cluster reports TERMINATED, then proceed to permanent deletion.
3
permanentDeleteCluster
Permanently delete the terminated cluster, removing its configuration so it can never be restarted.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Azure Databricks Terminate and Permanently Delete a Cluster
  summary: Terminate a cluster, wait until TERMINATED, then permanently delete it.
  description: >-
    Cleanly decommissions a cluster. The workflow terminates the cluster,
    polls the cluster get endpoint until its state is TERMINATED, and only then
    issues a permanent delete so the cluster configuration is fully removed.
    Every step spells out its request inline so the flow can be read and
    executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: clustersApi
  url: ../openapi/microsoft-azure-databricks-clusters-api-openapi.yml
  type: openapi
workflows:
- workflowId: terminate-and-purge-cluster
  summary: Terminate a cluster, wait for TERMINATED, then permanently delete it.
  description: >-
    Terminates the cluster, polls getCluster until the state is TERMINATED,
    then permanently deletes the cluster.
  inputs:
    type: object
    required:
    - token
    - clusterId
    properties:
      token:
        type: string
        description: Databricks personal access token for the Authorization header.
      clusterId:
        type: string
        description: The id of the cluster to terminate and permanently delete.
  steps:
  - stepId: terminateCluster
    description: >-
      Terminate the cluster. The cluster is removed from the running state but
      its configuration is preserved until permanent deletion.
    operationId: terminateCluster
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.token
    requestBody:
      contentType: application/json
      payload:
        cluster_id: $inputs.clusterId
    successCriteria:
    - condition: $statusCode == 200
  - stepId: pollCluster
    description: >-
      Retrieve the current cluster state. Repeat until the cluster reports
      TERMINATED, then proceed to permanent deletion.
    operationId: getCluster
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.token
    - name: cluster_id
      in: query
      value: $inputs.clusterId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      state: $response.body#/state
    onSuccess:
    - name: terminated
      type: goto
      stepId: permanentDeleteCluster
      criteria:
      - context: $response.body
        condition: $.state == "TERMINATED"
        type: jsonpath
    - name: stillTerminating
      type: goto
      stepId: pollCluster
      criteria:
      - context: $response.body
        condition: $.state == "TERMINATING" || $.state == "RUNNING" || $.state == "PENDING"
        type: jsonpath
  - stepId: permanentDeleteCluster
    description: >-
      Permanently delete the terminated cluster, removing its configuration so
      it can never be restarted.
    operationId: permanentDeleteCluster
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.token
    requestBody:
      contentType: application/json
      payload:
        cluster_id: $inputs.clusterId
    successCriteria:
    - condition: $statusCode == 200
  outputs:
    clusterId: $inputs.clusterId
    finalState: $steps.pollCluster.outputs.state

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/azure-databricks-terminate-and-purge-cluster-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.