This question already has an answer here:
Am I allowed to buy a cheap flight one way for 15$ just so that i can get through security in order to use duty free. Is that legal? And am I allowed to leave the airport without boarding my flight. If so, is there a way for me to cancel so that the flight wont wait for me?