But don't do that. Instead, you may want to write a resignation letter. It isn’t always necessary, of course, but a well-crafted resignation letter can be a professional and classy way to end a job.
Leaving a new job quickly can be difficult, but with professionalism and respect, you can maintain your reputation. Understand your contract, inform your manager respectfully, serve notice if possible ...