Hi. Welcome to English Forums.
The meanings depend upon context. They can mean both alternatives you suggested.
"If you are relieved, you feel happy because something unpleasant has not happened or is no longer happening."
"If someone is relieved of their duties or is relieved of their post, they are told that they are no longer required to continue in th