Hi Madhukar,
Instead of concentrating clearing few fields you can set same fields in do_prepare_output to query. You just check if the attribute is initial set with your custom value, so that when you click clear button system will clear everything and then set the attributes with you custom values using code in do_prepare_output.
Regards,
Dharmakasi.