With GroupDocs.Redaction, your .NET apps can quickly remove hidden data.
- Set up a Redactor and open your Xlsx file.
- Define which metadata you want to erase.
- Apply the redaction rules.
- Save the final file.
With GroupDocs.Redaction, your .NET apps can quickly remove hidden data.
// Clean up hidden metadata in XLSX
// Open file with Redactor
using (Redactor redactor = new Redactor("input.xslx"))
{
// Set up which metadata to remove
var redaction = new EraseMetadataRedaction(MetadataFilters.All);
// Apply redaction and save
redactor.Apply(redaction);
redactor.Save();
}
Use GroupDocs.Redaction for .NET to erase or hide content in many file formats. Keep files private and ready to share.

Protect personal data by finding and removing sensitive text.
Use overlays to block image areas with private visuals.
Clean out hidden metadata fields that may hold personal or business details.
// Open the document
using (Redactor redactor = new Redactor("source.xslx"))
{
// Target the Author metadata
MetadataSearchRedaction redactionAuthor =
new MetadataSearchRedaction(@"[A-Za-z0-9 ]+", "GroupDocs Company")
{
Filter = MetadataFilters.Author
};
// Target the Title metadata
MetadataSearchRedaction redactionTitle =
new MetadataSearchRedaction(@"[A-Za-z0-9 ]+", "GroupDocs.Redaction Usage")
{
Filter = MetadataFilters.Title
};
// Run the redaction process
var redactions = new MetadataSearchRedaction[] { redactionAuthor, redactionTitle };
redactor.Apply(redactions);
// Save the cleaned 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.
.NET makes it easy to clear metadata from XLSX files. Keep your files clean and secure.

