If you wish to quit a project you must visit the Projects I’m Working On section. Click into the project you wish to quit and select the Gear Box at the top right of the page. Under that you will see the option to Quit. Click that and you will Quit the project. You will not be able to reopen a project once you quit.
Note that if you quit a project your Freelancer Approval Rate may be affected