Middlesbrough confirmed that goalkeeper Victor Valdes will leave the club after having his contract terminated this summer.