It is working as expected.. there is a logic which executing behind in skipped tests and deleting the files.. issue is resolved. If any one wants to use this solution they can use, as the above code is fully functional