How to remove any previous program from Arduino?
Just upload a new one. I frequently &quot;blank&quot; an arduino when I'm done with it by uploading &quot;Blink.ino&quot; from the examples included with the IDE. (The only reason I've had to remove old code is to avoid an issue where I might later wire up the Arduino in a way that is dangerously incompatible with the old code running on it.)