First, stop the aircraft from flying its route, either by cancelling the route or changing the aircraft to the new one. Then go to the Airplane tab, select the aircraft type from the list, on the bottom of the right hand popup there will be some blue and grey aircraft icons. The grey ones don't have routes set, those are the ones you can sell. Click on them and then click "sell".