Withdrawing my H1 application.

I have filed H1 in Regular processing in June but I want to withdraw the application as I am leaving US for good and going back to India. Is it possible to get my money ($3000) back from USCIS?

How does the whole process takes place? Please advice.

As far as I know, no money will be refunded. USCIS will refund full amount only if it rejects the petition before the acceptance stage (i.e., sending the petition package back to the petitioner due to late submission or required documents missing, etc.). Once it accepts the petition for processing, it will not refund any amount from the various fees that is paid by the petitioner.