cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Deleting MLflow runs programmatically

samini
New Contributor II

I would like to programmatically delete some MLflow runs based on a given run id. I am interested in the best practices on how to do this in Databricks workspaces.

I know that MLflow cli has gc command which seems quite useful since it also deletes associated artifacts with a run id. I tried to use that in a Databricks workspace but it gave me an error saying: 

mlflow.exceptions.MlflowException: This cli can only be used with a backend that allows hard-deleting runs

Does anyone have experience with running this command or other best practices deleting runs programmatically?

3 REPLIES 3

Kaniz_Fatma
Community Manager
Community Manager

Hi @samini, The error message you're seeing indicates that the MLflow CLI garbage collection (gc) command is not supported by the backend store that's being used by your Databricks workspace.

samini
New Contributor II

Hi, it does indeed suggest that. But, is it something configurable in Databricks workspaces? I tried to find a setting in the Admin Settings tab, but I couldn't find anything.

mameli
New Contributor II

Do we have any updates on this? i'm using databricks and I have the same MlflowException

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group