how to turn off the share function on courses

we do not want to have the share function on the course how can we turn those off