Skip to content

Instantly share code, notes, and snippets.

@nschenone
Created April 6, 2023 21:33
Show Gist options
  • Save nschenone/c44d4a837c03b30204f411b9b353f395 to your computer and use it in GitHub Desktop.
Save nschenone/c44d4a837c03b30204f411b9b353f395 to your computer and use it in GitHub Desktop.
Delete all models in an MLRun project
import mlrun
project = mlrun.get_or_create_project(name="dummy-classifier", context="./")
db = mlrun.get_run_db()
for model in project.list_models():
db.del_artifact(key=model.db_key, project=project.name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment