How do I clear old tests from the tests page in Sauce Labs?
I've got allot of noise on there from trying out stuff and I'd like to tidy it up.
In the long run there will be lots of uninteresting builds, I'd like to be able to archive\remove them so that it isn't difficult to find the significant test runs.
This is currently not possible in Saucelabs. See this forum post for reference: http://support.saucelabs.com/entries/23076777-I-to-delete-seesions-
these jobs stay in your account indefinitely, as we've found that users prefer to maintain the records for future reference (for example, in case something starts failing in the future that previously passed).
UPDATE In the meantime they made it possible to delete jobs and resources through their REST API: https://docs.saucelabs.com/reference/rest-api/#delete-job
To quickly delete all your old SauceLabs jobs, you can use this command-line recipe:
SUN=$SAUCE_USERNAME; SAK=$SAUCE_ACCESS_KEY
curl -u $SUN:$SAK https://saucelabs.com/rest/v1/$SUN/jobs?format=csv \
| perl -wpe 's/\r$//' \
| xargs -I{} curl -u $SUN:$SAK -X DELETE "https://saucelabs.com/rest/v1/$SUN/jobs/{}"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With