GroupDocs.Redaction helps your .NET projects remove unwanted metadata fast.
- Create a Redactor instance and open your Docx file.
- Set up redaction to target metadata entries.
- Apply changes to clean the document.
- Save the cleaned file.
GroupDocs.Redaction helps your .NET projects remove unwanted metadata fast.
// Wipe metadata from DOCX documents
// Load the file using Redactor
using (Redactor redactor = new Redactor("input.docx"))
{
// Set up metadata removal settings
var redaction = new EraseMetadataRedaction(MetadataFilters.All);
// Apply and save the changes
redactor.Apply(redaction);
redactor.Save();
}
GroupDocs.Redaction for .NET lets you clean up sensitive content in many file types. Make your documents safer to share or store.

Search for and erase personal or business text from your files.
Cover up images or selected areas to hide confidential content.
Clear hidden metadata entries to avoid leaking background details.
// Load your DOCX file
using (Redactor redactor = new Redactor("source.docx"))
{
// Target Author field for removal
MetadataSearchRedaction redactionAuthor =
new MetadataSearchRedaction(@"[A-Za-z0-9 ]+", "GroupDocs Company")
{
Filter = MetadataFilters.Author
};
// Target Title field for removal
MetadataSearchRedaction redactionTitle =
new MetadataSearchRedaction(@"[A-Za-z0-9 ]+", "GroupDocs.Redaction Usage")
{
Filter = MetadataFilters.Title
};
// Run redaction process
var redactions = new MetadataSearchRedaction[] { redactionAuthor, redactionTitle };
redactor.Apply(redactions);
// Save your updated file
var saveOptions = new SaveOptions() { AddSuffix = true, RasterizeToPDF = false };
var outputPath = redactor.Save(saveOptions);
}
Download GroupDocs.Redaction for free or get a trial license for full access!
Explore documentation, code samples, and community support to enhance your experience.
Remove unwanted metadata in DOCX files using .NET. A simple way to protect your file’s hidden details.

