It means to take away from the value, importance, or effectiveness of something.
Here are some examples:
* "The loud music detracted from the speaker's presentation."
* "Her rude behavior detracted from the enjoyment of the evening."
* "The scratches on the table detract from its beauty."