How to remove form elements before submitting the form?
There are two ways, actually:


Wrap them into a proper modules. You will avoid conflict with Form API by cooperating with it. See Datepicker's code to get idea how to do it.
Create onsubmit javascript event and remove elements with jQuery.