Data exchanges via PORTS - Arduino and Processing

HOW DO I DELETE ALL THE CODING AND THeN REPLACE IT WITH MUCH LESS CODE?
TOM KANE (“kmot”)