Use GroupDocs.Redaction in your .NET project to clean up document metadata.
- Start a Redactor and open your Photo file.
- Set the rules to delete metadata.
- Apply redaction and clean the file.
- Save the result file.
Use GroupDocs.Redaction in your .NET project to clean up document metadata.
// Delete metadata from PHOTO documents
// Use Redactor to load the document
using (Redactor redactor = new Redactor("input.jpeg"))
{
// Set metadata fields for redaction
var redaction = new EraseMetadataRedaction(MetadataFilters.All);
// Clean the document and save
redactor.Apply(redaction);
redactor.Save();
}
GroupDocs.Redaction for .NET gives you ways to remove personal data from text, pictures, and file details. Perfect for data security.

Scan and erase any text that shouldn’t be shared.
Add covers over image parts with private details.
Delete hidden file data before sharing or publishing.
// Load PHOTO file into the redactor
using (Redactor redactor = new Redactor("source.jpeg"))
{
// Redact Author field
MetadataSearchRedaction redactionAuthor =
new MetadataSearchRedaction(@"[A-Za-z0-9 ]+", "GroupDocs Company")
{
Filter = MetadataFilters.Author
};
// Redact Title field
MetadataSearchRedaction redactionTitle =
new MetadataSearchRedaction(@"[A-Za-z0-9 ]+", "GroupDocs.Redaction Usage")
{
Filter = MetadataFilters.Title
};
// Process the document
var redactions = new MetadataSearchRedaction[] { redactionAuthor, redactionTitle };
redactor.Apply(redactions);
// Save the cleaned version
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.
Keep your PHOTO documents safe by cleaning out metadata with .NET tools.

