Created
April 6, 2023 21:33
-
-
Save nschenone/c44d4a837c03b30204f411b9b353f395 to your computer and use it in GitHub Desktop.
Delete all models in an MLRun project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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