To discourage someone by removing their enthusiasm or courage.
To cause (something) to flee by frightening it.
To deter