Forum Discussion
ashokkumareds
11 years agoContributor
Hi,
You can use the below code.
function GeneralEvents_OnStopTest(Sender)
{
try{
aqFileSystem.DeleteFolder(Log.Path, true);
}catch(ex){
Log.Warning("Error in deleting the logs...!" + ex.description);
}
}
However this will leave a <unspecifiec log> entry in the "TestLogs". This is a dangling pointer. This can be removed or this will disppear on closing and reopening the testcomplete.