Money really can’t buy happiness.

Billionaire Elon Musk’s rough private life is no longer so private. Yesterday afternoon, he revealed to his 10.8 million Twitter followers that his high-profile life has a darker side. He described his life as having “terrible lows and unrelenting stress,” responded “Yeah” when a follower asked if he had bipolar disorder, and blamed himself for his emotional struggles.

When you’re the CEO of some of America’s most successful and innovative companies, you can get away with sharing a lot online. But for the rest of us, the issue is a little more delicate, and experts say it’s generally important to keep your social media professional.

When it comes to social media, particularly Twitter, while no topic is completely off limits, some topics, such as your mental and physical health, religion, and politics, should be handled very carefully, says Nicole Wood, co-founder and CEO of Ama la Vida coaching.

Also read:  4 questions you should never answer at work

The first rule of social media: “When you type content, whether in social media, an email, or a text, imagine that this information is shown on the TV news that evening,” says Tina Mertel, executive career coach at Meaningful Coaching. “Do you want to be known for what you are typing? If you choose to keep it in the public, know that you may be asked about it at work or any other area of your life.”

If you’re still not sure whether a life experience is too personal to tweet about, Mertel recommends figuring out who you most want to read that tweet, and reaching out to them individually for advice. “Ask yourself who you would really like to inform about this area, and pick up the phone, or meet with them” she says. Make sure it’s someone you trust to keep the information confidential.

If you’ve tweeted something too personal, but don’t realize you’ve done so until after the fact, you’re in a tougher spot. The first step is to delete it as soon as possible. “Social media platforms don’t show content to everyone they are friends with, so there’s a good chance you can delete it before too many people notice,” Wood explains. You can check how many people have viewed a tweet, for example, by clicking “View Tweet Activity” on the tweet itself.

If the tweet was up for long enough that your boss or coworkers may have seen it, it may be worth tweeting a follow-up apology acknowledging your mistake. “It’s better to take charge, fess up to your mistake, and set the tone than have people’s imaginations running wild,” Wood says. Then, approach your work with new focus and vigor. “If you keep producing great work product, it will change the conversation from your personal mishap to your competence in the office,” Wood says.

Also read: What we can learn about dealing with setbacks at work from the Obamacare repeal failure

The most important thing, however, is to make sure you don’t make the same mistake again. Experts say that your colleagues will probably forget about one inappropriate tweet–but you don’t want to develop a reputation for that behavior. “Everyone makes mistakes, and most likely no one will even remember this a year from now, but people do remember trends,” says Wood.

To avoid repeating the mistake, think before you post and make sure you understand the personalities and audiences of each platform you post on. “It’s important to tell a consistent story, but you can tailor the content to the proper audience,” says Wood. As a rule of thumb, Facebook is the best place to put personal, friends-only content — but even that is risky. If you really want to post something, make sure your account is set to private, and that you’re not friends with your boss.