Fix improper setting of boolean value to delete artifacts.