clearml-server icon indicating copy to clipboard operation
clearml-server copied to clipboard

How to remove experiments or projects

Open jinserk opened this issue 4 years ago • 3 comments

I'm taking a look of trains-server and saw lots of example experiments are already recorded as default. How can I remove them or empty project to enroll my own? Thank you in advance!

And if possible, can I remove or archive multiple choice of experiments at once? If this is not already implemented, then I'd like to ask it as a feature request. Thank you!

jinserk avatar Jul 19 '20 00:07 jinserk

Hi @jinserk

These are all part of the example experiments, the idea is to quickly allow you have some data on the system to play around with (for example launch experiments to the trains-agent etc.).

You can right-click these example experiments, and select archive to put them into the archive folder, so that they won't bother you. If you really want to delete them, you can use the cleanup service, it will daily delete old archived tasks from the system.

Or manually delete an experiment with the following sample code (deleting experiment id 'aabbcc1234'):

from trains.backend_api.session.client import APIClient
client = APIClient()
client.tasks.delete(task='aabbcc1234', force=True)

bmartinn avatar Jul 19 '20 15:07 bmartinn

@bmartinn Hi, I tried using the cleanup service that you linked to, but I am running into an authentication issue. Where the cleanup service tried to clone our private repo. How do I give git credentials to cleanup service?

ChickenTarm avatar Jan 07 '22 19:01 ChickenTarm

Hi @ChickenTarm

Where the cleanup service tried to clone our private repo. How do I give git credentials to cleanup service?

You can set the service agent's git permission here on the docker-compose: https://github.com/allegroai/clearml-server/blob/1502e02a1a73d01299fcc6470e9ba58964186003/docker/docker-compose.yml#L137

Is this what you were referring to ? If not, can you provide log of the error ?

bmartinn avatar Jan 08 '22 01:01 bmartinn