sanitize

transitive verb

To make sanitary, as by cleaning or disinfecting.

To make more acceptable by removing unpleasant or offensive features from.

verb

To partially free something of microorganisms by cleaning or disinfecting.

(by extension) to make something, such as a dramatic work, more acceptable by removing potentially offensive material.

(computing) to remove sensitive or personal data from a database or file before giving the public access to it.