capabilities.work

Inspect and Recursively Delete a Directory

A 2-step recipe with Databricks. We can help you get access.

Recipe · 2 steps

Inspect and Recursively Delete a Directory

List a directory's contents and recursively delete it.

  1. List the objects contained in the directory so the caller has a record of what is about to be deleted.
  2. Recursively delete the directory and all of its contents.
What you'll need to have ready
  • path: The absolute directory path to inspect and delete.
For your developer

Arazzo workflow databricks:cleanup-workspace-directory, 2 operations: listWorkspaceObjects → deleteWorkspaceObject. Specs on APIs.io.