To extinguish the courage of; to dishearten; to depress the spirits of; to deprive of confidence; to deject.
Don't be discouraged by the amount of work left to do: you'll finish it in good time.
To persuade somebody not to do (something).