Definitions of censor

to read books, watch films etc in order to remove anything considered offensive, illegal, or otherwise unsuitable for the public

The movie was heavily censored to remove scenes considered inappropriate for a family audience.

to remove parts considered unsuitable from private letters, especially in the military or in a prison

The prisoner's letters were censored in the national interest.