Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Notice: The Weights & Biases domain will change on September 30. This includes all websites and services that use a W&B domain. No action is needed today.
"entity"
[CONDITION]
True
import wandb api = wandb.Api() runs = api.runs("entity/project") for run in runs: if [CONDITION]: run.delete()
import wandb from datetime import datetime api = wandb.Api() entity = "wandb" project = "project" cutoff = "2024-01-01T00:00:00Z" # この UTC timestamp より前に作成された run を削除します runs = api.runs( path=f"{entity}/{project}", filters={"createdAt": {"$lt": cutoff}}, order="+created_at", ) # まず dry run を実行します runs_to_delete = list(runs) print(f"Found {len(runs_to_delete)} runs to delete:") for run in runs_to_delete: print(run.id, run.name, run.created_at) confirm = input("Type DELETE to permanently delete these runs: ") if confirm == "DELETE": for run in runs_to_delete: print(f"Deleting {run.path}") run.delete() # または run.delete(delete_artifacts=True)
Was this page helpful?