deleting thread file