GroupDocs.Metadata for Python via .NET API

Delete Metadata in POT Using Python

Easily remove metadata from documents, images, audio, and video files with the GroupDocs.Metadata for Python via .NET API.

How to Remove Metadata from POT in Python

GroupDocs.Metadata makes it simple for developers to clean metadata from POT files by following a few steps.

  1. Open the POT file using the Metadata class.
  2. Remove all metadata in the loaded file.
  3. Handle the result of the cleanup process.
  4. Save the updated file in POT format.
# Erase metadata from a POT file
import groupdocs.metadata as gm

def run():
    
    with gm.Metadata("input.pot") as metadata:

        # Wipe all metadata entries
        affected = metadata.sanitize()

        # Show the count of removed items
        print(f"Properties removed: {affected}")

        # Save the clean version
        metadata.save("output.pot")
pip install groupdocs-metadata-net
click to copy
copied
More examples Documentation

Smart Metadata Cleanup Tools

Use our API to tidy up file metadata, making your documents easier to manage, search, and secure.

Easy Document Metadata Cleanup

Quick Metadata Preview

Instantly see key metadata details like the author, creation time, and other properties.

Simple Metadata Editing

Edit metadata directly to keep your documents well-organized and searchable.

Full Metadata Control

Easily add custom fields, remove sensitive data, and ensure metadata is clean and consistent.

Remove Personal Info from a DOCX File

This example shows how to clean personal metadata from a Word document.

Python

import groupdocs.metadata as gm

def run():

    # Load the document you want to edit
    with gm.Metadata("input.docx") as metadata:

        # Choose the type of metadata to remove
        specification = gm.search.FallsIntoCategorySpecification(gm.tagging.Tags.person)

        # Clear the selected metadata
        affected = metadata.remove_properties(specification)

        # Save the document after cleanup
        metadata.save("output.docx")

What Is GroupDocs.Metadata for Python via .NET?

GroupDocs.Metadata for Python via .NET gives developers a powerful way to work with metadata—without the need for third-party software. You can read, update, remove, search, compare, replace, and export metadata from documents and media files. Clean metadata from PDFs, Word docs, Excel sheets, PowerPoint slides, Outlook messages, OneNote, Visio, Project, AutoCAD drawings, archives, and multimedia formats.
Learn more
About illustration

Ready to get started?

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

Useful resources

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

Removing Metadata from Other File Types

A flexible metadata removal API for Python that supports many common file formats. See some of the supported types listed below.

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