where context is of type ITestContext and a parameter in teardown method with @AfterMethod annotation. Here I am removing failed one in all executions of particular test script. Just try it and let me know if it helped.