Azure Databricks · Arazzo Workflow

Azure Databricks Safely Delete a Workspace Directory

Version 1.0.0

List a directory, confirm it is a directory, then recursively delete it.

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

Provider

microsoft-azure-databricks

Workflows

delete-workspace-directory
Inspect a directory, confirm its type, then recursively delete it.
Lists the directory, confirms object_type is DIRECTORY via getWorkspaceObjectStatus, then deletes it recursively.
3 steps inputs: directoryPath, token outputs: deletedContents, directoryPath
1
listDirectory
List the directory contents to capture what will be removed before deleting.
2
confirmDirectory
Confirm the path is a DIRECTORY before issuing a recursive delete so a single object is not removed unexpectedly.
3
deleteDirectory
Recursively delete the confirmed directory and all of its contents.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Azure Databricks Safely Delete a Workspace Directory
  summary: List a directory, confirm it is a directory, then recursively delete it.
  description: >-
    Removes a workspace directory and its contents after inspecting it. The
    workflow lists the directory to capture what will be removed, confirms via a
    status check that the path is a DIRECTORY, and then recursively deletes it.
    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: workspaceApi
  url: ../openapi/microsoft-azure-databricks-workspace-api-openapi.yml
  type: openapi
workflows:
- workflowId: delete-workspace-directory
  summary: Inspect a directory, confirm its type, then recursively delete it.
  description: >-
    Lists the directory, confirms object_type is DIRECTORY via
    getWorkspaceObjectStatus, then deletes it recursively.
  inputs:
    type: object
    required:
    - token
    - directoryPath
    properties:
      token:
        type: string
        description: Databricks personal access token for the Authorization header.
      directoryPath:
        type: string
        description: Absolute path of the workspace directory to delete.
  steps:
  - stepId: listDirectory
    description: >-
      List the directory contents to capture what will be removed before
      deleting.
    operationId: listWorkspaceObjects
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.token
    - name: path
      in: query
      value: $inputs.directoryPath
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      objects: $response.body#/objects
  - stepId: confirmDirectory
    description: >-
      Confirm the path is a DIRECTORY before issuing a recursive delete so a
      single object is not removed unexpectedly.
    operationId: getWorkspaceObjectStatus
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.token
    - name: path
      in: query
      value: $inputs.directoryPath
    successCriteria:
    - condition: $statusCode == 200
    - condition: $response.body#/object_type == "DIRECTORY"
    outputs:
      objectType: $response.body#/object_type
  - stepId: deleteDirectory
    description: >-
      Recursively delete the confirmed directory and all of its contents.
    operationId: deleteWorkspaceObject
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.token
    requestBody:
      contentType: application/json
      payload:
        path: $inputs.directoryPath
        recursive: true
    successCriteria:
    - condition: $statusCode == 200
  outputs:
    directoryPath: $inputs.directoryPath
    deletedContents: $steps.listDirectory.outputs.objects

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-delete-workspace-directory-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.