WebPagetest Forums
Deleting results - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Feature Suggestions (/forumdisplay.php?fid=9)
+--- Thread: Deleting results (/showthread.php?tid=3547)



Deleting results - ash - 09-12-2011 07:39 PM

Is there any safe way of deleting test results. For example of tests that failed? I guess it is possible to edit log files and delete results files, but it is easy to damage something while doing that.


RE: Deleting results - pmeenan - 09-12-2011 10:22 PM

Not currently. It's been on my to-do list for a while, to let the user who originally submitted a test delete it.

I have some scripts that I use that can do it safely for the public instance but there's nothing that's well supported yet.


RE: Deleting results - ash - 09-26-2011 07:07 PM

Patrick, could you describe what I should do to delete results from my private instance please? I am afraid of breaking my instance while doing it. I guess I should remove something from logs and appropriate folder from results folder. Is anything else I should do?


RE: Deleting results - pmeenan - 09-27-2011 07:15 AM

Are you just trying to free up space or are you trying to delete a specific test? Don't worry about breaking things, it's all stateless and the tests are stored on disk in a directory hierarchy under results:

results/year/month/day/hash/test

If you're just trying to free up disk space, the easiest thing to do is to just nuke old tests by blowing away directories (previous months or years). The test logs are under the logs/ directory and there is one file per day but those don't really take that much space.

If you are trying to nuke a specific test the easiest way is to just delete the directory for that one test (the test ID maps directly to the directory hierarchy). If you need to remove it from the test log then it's a touch harder because you need to open the log file and delete the line for the given test from the file.


RE: Deleting results - ash - 09-27-2011 05:42 PM

Thanks Patrick for the explanation!