Reject a job offer after signing the offer letter
I recently got a job offer which I accepted, signed the offer letter and went through background check. After all the process I got an offer from another company that I’m way more interested in. How I can tell the hiring manager that I’m not joining their team? Is it even legal to sign a contract and withdraw before joining?