If you want to cancel your United flight, you are bound by the terms and conditions set out by the airline at the time of booking. United Airlines has a 24 hours cancellation policy.
You can cancel your United flight ticket within 24 hours of booking. You may get a full refund of the flight ticket cost without being charged. Otherwise, you have to pay the cancellation fee if you cancel your ticket after completion of 24 hours of booking.