public static void DeleteFile(string path) { try { DeleteFileJob job = new DeleteFileJob(path); System.Threading.Thread worker = new System.Threading.Thread(job.DoWork); worker.Start(); } catch (Exception) { } }