Part with (something)

To give away something although you would like to keep it, to sell something although you would like to keep it.

The boy had to part with the car that he loved.