h1 b application cancellation policy / timelines

Hi All,
Till what date can an employer revoke a h1b petition for an employee and get full refund of the fees?.
I Checked the USCIS site and other forums but I am unable to find any concrete guidelines on the cancellation procedure for an h1b petition. Is it possible for an employer to cancel a petition before the lottery is conducted / or lottery results are declared?

I doubt if they can withdraw a filed petition now. Lottery can happen anytime now.

If the petition doesn’t make through the lottery, then everything will be returned to the employer including the fees.

If the petition makes through the lottery, and employer withdraws the petition then no dollars are returned.