Dr. Marty Makary resigned as FDA commissioner on Tuesday, with President Donald Trump sharing a post on Truth Social showing a purported resignation text from Makary. A White House official confirmed to CNBC that Makary's resignation came via text. The announcement came after days of reports that the White House planned to fire him. The FDA shake-up raises the question: Should you ever resign by text? While every exit is different, workers should generally take a different approach, experts say. Bonnie Dilber, senior manager of talent acquisition at software company Zapier, recommends having a conversation with your manager in person if possible to deliver the news, before emailing a formal resignation letter to have a written record of it. "How you leave a job matters," she tells CNBC Make It.…