Use GroupDocs.Redaction in your .NET projects to handle document metadata securely.
- Create a Redactor object and load the target Excel file.
- Configure redaction to clear hidden metadata.
- Run the cleanup process.
- Save the final version.
Use GroupDocs.Redaction in your .NET projects to handle document metadata securely.
// Clean metadata from EXCEL
// Initialize redactor and load file
using (Redactor redactor = new Redactor("input.xslx"))
{
// Set removal options for metadata
var redaction = new EraseMetadataRedaction(MetadataFilters.All);
// Redact and save the result
redactor.Apply(redaction);
redactor.Save();
}
GroupDocs.Redaction for .NET allows you to clean text, images, and metadata in multiple formats. Ideal for personal, legal, and corporate documents.

Find personal or confidential text in documents and remove it safely.
Overlay sensitive parts of images to prevent viewing.
Erase embedded data that may leak sensitive information.
// Import the document to the redactor
using (Redactor redactor = new Redactor("source.xslx"))
{
// Target Author metadata
MetadataSearchRedaction redactionAuthor =
new MetadataSearchRedaction(@"[A-Za-z0-9 ]+", "GroupDocs Company")
{
Filter = MetadataFilters.Author
};
// Target Title metadata
MetadataSearchRedaction redactionTitle =
new MetadataSearchRedaction(@"[A-Za-z0-9 ]+", "GroupDocs.Redaction Usage")
{
Filter = MetadataFilters.Title
};
// Apply changes
var redactions = new MetadataSearchRedaction[] { redactionAuthor, redactionTitle };
redactor.Apply(redactions);
// Save the updated document
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.
Get rid of private metadata in EXCEL files with .NET. Keep your documents clean and safe.

