GroupDocs.Metadata for Node.js via Java API

Remove MSG Metadata in Node.js via Java

Remove metadata properties from MSG and other popular document, image, and multimedia file formats using GroupDocs.Metadata for Node.js via Java API.

Steps for Removing Metadata from MSG in Node.js via Java

GroupDocs.Metadata makes it easy for Node.js via Java developers to delete metadata from MSG files in a few simple steps.

  1. Load the MSG file to be updated.
  2. Pass a search predicate to the RemoveProperties method.
  3. Check the number of properties that were removed.
  4. Save the changes.

// Clear MSG document metadata
const metadata = new groupdocs.metadata.Metadata("input.msg");

// Remove all mentions of contributors
// Remove a custom property by name
var affected = metadata.removeProperties(
    new FallsIntoCategorySpecification(groupdocs.metadata.Tags.getPerson()).
    or(new groupdocs.metadata.WithNameSpecification('CustomProperty')));
    
console.log('Affected properties: ${affected}');
    
// Save the cleaned file
metadata.save("output.msg");
npm i @groupdocs/groupdocs.metadata
click to copy
copied
More examples Documentation

Manage Document Metadata with Ease

Our solution simplifies metadata management. Easily access, edit, and update document properties to keep files organized and searchable.

Protect Documents Metadata

Effortless Metadata Control

Quickly retrieve and process document metadata. Gain insights into properties like author, creation date, and more.

Simple Metadata Editing

Directly edit document metadata. Update properties for better organization, searchability, and accuracy.

Powerful Metadata Management

Perform advanced operations on document metadata. Easily add custom properties, remove unnecessary data, and ensure consistency.

Clear ZIP Archive Metadata

This code snippet shows how to remove user comments from a ZIP archive.

TypeScript


    //  Load the archive file for processing
    const metadata = new groupdocs.metadata.Metadata('input.zip');

    //  Get the main metadata package
    var root = metadata.getRootPackageGeneric();

    //  Remove archive comments
    root.getZipPackage().setComment(null);

    //  Save the cleaned file
    metadata.save('output.zip');

About GroupDocs.Metadata for Node.js via Java API

GroupDocs.Metadata for Node.js via Java is an advanced solution for managing metadata fields. Easily read, add, update, delete, find, compare, exchange, and export metadata from images and documents without using any external software. Remove metadata from Word, Excel, PowerPoint, Outlook, OneNote, Visio, Project, PDF, AutoCAD, ZIP, audio, and video files, along with many other features.
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 Formats

Multi-format document and image metadata removal API for Node.js via Java. Retrieve and remove metadata from popular file formats.

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