How unselect an item of planner with programming

Thank you gays, it works