Redact

DEF: to remove words or information from a text before it is made available to the public.

EX: Some of the documents released by the police have been heavily redacted to hide the confidential information.

Merriam-Webster Online Dictionary
redact (verb)
transitive verb
1.
to put in writing - frame
2.
to select or adapt (as by obscuring or removing sensitive information) for publication or release , broadly - edit
3.
to obscure or remove (text) from a document prior to publication or release