Catalysis of the reaction: 10-formyltetrahydrofolate + H(2)O = (6S)-5,6,7,8-tetrahydrofolate + formate + H(+).