Unanswered
Looking At The Docs.. I Couldn'T Find A Way To Cleanup The Experiments... Only Archive Them... I Also Noticed
You can loop over the tasks you want to delete, Based on the cleanup service:
` import logging
from trains.backend_api.session.client import APIClient
client = APIClient()
you can get the tasks you want to delete with client.tasks.get_all, in this example we will get you all the tasks in a project, but you have other filters too
tasks = client.tasks.get_all(project=[<your project id>])
for task in tasks:
try:
# try delete a task from system
client.tasks.delete(task=task.id) # you also have a force param, you can add force=True if you like
except Exception as ex:
logging.warning(
"Could not delete Task ID={}, {}".format(
task.id, ex.message if hasattr(ex, "message") else ex
)
) `This will delete all the tasks in a project for example
159 Views
0
Answers
4 years ago
one year ago