Top Features of GroupDocs.Redaction for .NET

Delete Metadata in DOCX Files with .NET

Use C# to clean up sensitive metadata from DOCX files. Keep your business and personal data protected.

Clean Hidden Data in Docx Files

GroupDocs.Redaction helps your .NET projects remove unwanted metadata fast.

  1. Create a Redactor instance and open your Docx file.
  2. Set up redaction to target metadata entries.
  3. Apply changes to clean the document.
  4. Save the cleaned file.
// 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();
}
dotnet add package GroupDocs.Redaction
click to copy
copied
More examples Documentation

Hide Sensitive Info in Any Document

GroupDocs.Redaction for .NET lets you clean up sensitive content in many file types. Make your documents safer to share or store.

Smart Redaction Options

Remove Private Text

Search for and erase personal or business text from your files.

Mask Images

Cover up images or selected areas to hide confidential content.

Erase Metadata

Clear hidden metadata entries to avoid leaking background details.

Clean Metadata Fields

This example demonstrates how to remove hidden data from DOCX files.

C#

//  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);
}
dotnet add package GroupDocs.Redaction
click to copy
copied
More examples Documentation

What is GroupDocs.Redaction for .NET?

GroupDocs.Redaction gives C# developers tools to hide or remove content in DOCX files. Clean up text, images, and metadata fast.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Redaction for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

Erase Metadata in DOCX with .NET

Remove unwanted metadata in DOCX files using .NET. A simple way to protect your file’s hidden details.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English