the shell will help to protect the egg from bacteria, and can help prevent them from absorbing odors from other foods in your refrigerator. a quick beginner's tip is that hard-boiled eggs can be preserved up to 7 days in the refrigerator.