Recently, we discussed how we can edit metadata properties of different file formats. What about if we don’t need the metadata or selective metadata properties within our documents? We have various options to remove different metadata properties or simply clean all the properties. We can do it using a simple online Metadata Scrubber Tool or remove it programmatically using C# and Java. Let’s see these options quite briefly.

Online Metadata Scrubber

To start with, let’s clean the documents from the unnecessary metadata properties online. You can simply upload your document to view, edit, update, remove selective, and clean all the metadata properties of various files. In this article, I am using GroupDocs.Metadata as Metadata Remover.

Online EPUB Metadata Editor

Here are the simple steps to sanitize (remove all the metadata properties from) documents online:

  • Visit the Online Metadata Cleaner App.
  • Upload your file using one of the two simple methods:
    • Click Open file and browse and select your file.
    • Drag and drop your file into the designated area.
  • Click the Clean Metadata button to remove properties of the uploaded file.
  • Using the Download button, you can save the file that will no longer contain any metadata but only its file format info.

That’s it! Let’s sanitize your files by removing all the unwanted metadata.

Metadata Cleaning – Developer’s Guide

Online metadata removal is too easy. However, you may not prefer an online tool if you have to perform the same activity for a large number of documents of various formats. It’s an obvious choice to do it programmatically.

Here, I will introduce you to libraries that are designed to make the metadata-cleaning process a whole lot easier. I will show you how to use these APIs to clean the metadata programmatically. So, get ready to explore and choose the one that suits your needs best!

Let’s clean it.

Metadata Scrubber using C#

.NET developers can sanitize documents of various file formats within no time using the simple few lines of C# code.

  • Load the document using Metadata class.
  • Remove all the metadata properties using the Sanitize method.
  • Save the metadata free document using the Save method.

Here is the C# code showing the above steps to clean metadata from any of your documents.

Similarly, you can also remove any of the selected metadata properties of your documents. For detailed guidance, take a look at the articles on Metadata Scrubber for Documents and Images using C#.

For more .NET API resources, check out these links:

.NET API | Documentation | Download

Metadata Scrubber using Java

Java programmers have straightforward options to clean metadata properties from documents of various file formats using a simple few lines of code.

  • First, load the document using the Metadata class.
  • Then, clean the metadata properties using the sanitize method.
  • Finally, save the document with deleted metadata using the save method.

Here is the Java code showing the above steps to remove metadata from your documents.

Likewise, you have the option to delete any of the selected metadata properties of your documents. For more details, take a look at the articles on Metadata Cleaner for Documents and Images using Java.

For more Java API resources, explore these links:

.NET API | Documentation | Download

Conclusion

In this article, we have just explored the sanitization world of metadata. Whether, you want to scrub the metadata of your files online, or you want to clean it programmatically using C# or Java, we have got you covered here.

Don’t get confused, if your file format is supported by the tool or API. I am sure you can find your document format in the list of supported file formats.

For detailed API information, readers are encouraged to consult the respective documentation. Questions and further discussions can be directed to the provided forum.

See Also