It describes a feeling of loss of hope or confidence.
Here are some examples:
* Disheartened by the poor performance of his team, the coach decided to change the strategy.
* The dejected athlete slumped onto the bench after losing the race.
* After several failed attempts, she was discouraged but determined to keep trying.