Expurgation

Expurgation, also known as bowdlerization, is a form of censorship that involves purging anything deemed noxious or offensive from an artistic work, or other type of writing of media.
The term "bowdlerization" is a pejorative term for the practice, particularly the expurgation of lewd material from books. The term derives from Thomas Bowdler's 1818 edition of William Shakespeare's plays, which he reworked in order to make them more suitable for women and children. He similarly edited Edward Gibbon's "Decline and Fall of the Roman Empire".
A "fig-leaf edition" is such a bowdlerized text, deriving from the practice of covering the genitals of nudes in classical and Renaissance statues and paintings with fig leaves.
Examples.
"Fahrenheit 451".
A student edition of the novel "Fahrenheit 451" was expurgated to remove a variety of content. This was ironic given the subject matter of the novel involves burning books. This continued for a dozen years before it was brought to author Ray Bradbury's attention and he convinced the publisher to reinstate the material.