Transfer the Pokémon to the Professor
You receive Candy in exchange for transferring a Pokémon. Be careful—you can’t get the Pokémon back after you’ve transferred it to the Professor.
cited from the support page
You receive 1 candy per pokemon transferred, regardless of the pokemon’s level of evolution or CP. (Hat tip to @CreativiTimothy) for sharing this in the comments.