Skip to main content

Delete file

Delete a file from a Unity Catalog volume, the workspace, or DBFS (a DBFS folder with recursive).

Command in the Databricks toolkit · id ooa.databricks/delete_file · 6 inputs (1 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Workspace address (URL)StringNoWorkspace address, e.g. https://adb-1234567890123456.7.azuredatabricks.net or https://dbc-a1b2c3d4-e5f6.cloud.databricks.com.
Remote pathStringYesFile to delete.
RecursiveBooleanNofalseDBFS only: also delete a folder with everything in it.
Access tokenCredentialNoDatabricks personal access token or OAuth token from the vault. Or leave it empty and choose a connection that signs in, which gets and renews the token.
Client IDStringNoApplication (client) id of a service principal, to sign in with OAuth instead of a personal access token (G6).
Client secretCredentialNoThe service principal's OAuth secret from the vault (G6).