1. Open iTunes.
2. Choose Store > Deauthorize This Computer from the menu bar.
3. Enter your Apple ID and click Deauthorize.