Key Features of GroupDocs.Redaction for Python via .NET

Remove Metadata in XLSX Files with Python

With Python, you can safely delete private details from your XLSX files. Perfect for personal and professional use.

Wipe Metadata from Xlsx Files

GroupDocs.Redaction lets your Python via .NET projects remove unwanted file data fast.

  1. Create a Redactor instance and load your Xlsx file.
  2. Choose the metadata entries you want to erase.
  3. Run redaction to clear those entries.
  4. Save the updated file.
import groupdocs.redaction as gr
import groupdocs.redaction.redactions as grr

# Delete hidden metadata in your XLSX document

# Set which metadata fields should be removed
redaction = grr.EraseMetadataRedaction(grr.MetadataFilters.ALL)

# Open the file using Redactor
with gr.Redactor("input.xslx") as redactor:

    # Apply changes and save the file
    result = redactor.apply(redaction)
    redactor.save()
pip install groupdocs-redaction-net
click to copy
copied
More examples Documentation

Hide Sensitive Content Anywhere in the File

GroupDocs.Redaction for Python via .NET lets you clean up private info from multiple file formats. Keep your content ready to share.

Metadata and Content Redaction

Delete Sensitive Text

Find and remove names, emails, or other private details from documents.

Cover Up Image Areas

Place overlays to hide areas in images that should not be seen.

Metadata Cleaner

Remove hidden fields like Author, Title, or creation date.

Remove Metadata from Document

Here’s how to remove metadata from your XLSX file using a few lines of code.

Python

import groupdocs.redaction as gr
import groupdocs.redaction.options as gro
import groupdocs.redaction.redactions as grr
import groupdocs.pydrawing as grd

# Mark the Author field for deletion
redaction_author = grr.MetadataSearchRedaction("[A-Za-z0-9 ]+", "GroupDocs Company")
redaction_author.filter = grr.MetadataFilters.AUTHOR

# Mark the Title field for deletion
redaction_title = grr.MetadataSearchRedaction(@"[A-Za-z0-9 ]+", "GroupDocs.Redaction Usage")
redaction_title.filter = grr.MetadataFilters.TITLE

# Open the document
with gr.Redactor("source.xslx") as redactor:

    # Run redaction rules
    redactions = [
      redaction_author,
      redaction_title
    ]
    result = redactor.apply(redactions)

    # Save the clean file
    save_options = gro.SaveOptions()
    save_options.add_suffix = True
    save_options.rasterize_to_pdf = False
    result_path = redactor.save(save_options)
pip install groupdocs-redaction-net
click to copy
copied
More examples Documentation

What is GroupDocs.Redaction for Python via .NET?

GroupDocs.Redaction gives Python developers tools to erase or hide any sensitive content in XLSX files — from text to images to metadata.
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.

Wipe Metadata in XLSX with Python

Use Python to clear private metadata in your XLSX files. A good way to make files ready for sharing or publishing.

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