Current time: 11-27-2020, 08:05 AM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Delete Archived Test Result
01-29-2013, 01:56 AM
Post: #4
RE: Delete Archived Test Result
Not sure if it helps any but I have some code that I just put together to clean up the archives on

You'd probably want to modify a few things because right now it only deletes archived tests if they were flagged with an archive.dat (stored on a 2nd-level archive in my case) but it crawls the archives and extracts the test information from within each archived test and then decides if it should be deleted.

If you remove the $info_file check in the main loop and then adjust the logic inside of PruneTests right after the "// for now, only delete tests that were not priority 0 or that used an api key" comment to use whatever criteria you want it should be able to clean up tests based on arbitrary rules.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
Delete Archived Test Result - timmckenzie - 01-22-2013, 10:26 AM
RE: Delete Archived Test Result - pmeenan - 01-23-2013, 02:29 AM
RE: Delete Archived Test Result - pmeenan - 01-29-2013 01:56 AM

Forum Jump:

User(s) browsing this thread: 1 Guest(s)