Verb: It means to free from something unwanted or burdensome.
* Example: "We need to rid our house of clutter."
Adjective: It means free from something unwanted or burdensome. (This is a less common usage.)
* Example: "He was rid of his worries after the meeting."
The part of speech depends on the context of the sentence.