- Go to appleid.apple.com
- Log in using your Apple ID and password.
- Scroll down to "Devices."
- Click on the name of the Macbook Pro.
- A small window will open; click on "Remove."
You may also want to read Apple's advice on What to do before you sell or give away your Mac.