The spell description of wish offers several things you can wish for that are guaranteed to work. Wishing for other things can lead to unforeseen consequences, at the DM's discretion:
You might be able to achieve something beyond the scope of the above examples. State your wish to the GM as precisely as possible. The GM has great latitude in ruling what occurs in such an instance; the greater the wish, the greater the likelihood that something goes wrong. This spell might simply fail, the effect you desire might only be partly achieved, or you might suffer some unforeseen consequence as a result of how you worded the wish.
However, some game features offer alternative uses of wish, for example, the spell geas can be ended via a wish spell:
You can end the spell early by using an action to dismiss it. A remove curse, greater restoration, or wish spell also ends it.
What are all of the game features that include one of these "off-label" uses of the wish spell?