Remove Metadata from MP3 File in C#

Remove metadata information from a variety of documents, images, audio & video file formats using GroupDocs.Metadata for .NET API.


Download Free Trial

About GroupDocs.Metadata for .NET API

GroupDocs.Metadata for .NET offers an advanced set of metadata manipulation features, allowing developers to easily read, edit, remove, search, compare, replace and export metadata information from images and document formats without using any external software. Use metadata management API to delete metadata details from PDF, Microsoft Office Word, Excel spreadsheets, PowerPoint presentations, Outlook, OneNote, Visio, Project, AutoCAD, Archive and Multimedia file formats along with many other metadata processing features.

Steps for Removing MP3 Metadata in C#

GroupDocs.Metadata makes it easy for .NET developers to remove metadata details from MP3 files from within their applications by implementing a few easy steps.

  • Load MP3 with an instance of Metadata class.
  • Use a predicate to find desired metadata properties.
  • Use Metadata.RemoveProperties method to remove the properties.
  • Save the changes back in MP3 format.

System Requirements

GroupDocs.Metadata for .NET APIs are supported on all major platforms and operating systems. Before executing the code below, please make sure that you have the following prerequisites installed on your system.

  • Operating Systems: Microsoft Windows, Linux, MacOS
  • Development Environments: Visual Studio, Xamarin, MonoDevelop
  • Frameworks: .NET Framework, .NET Standard, .NET Core, Mono
  • Download the latest version of GroupDocs.Metadata for .NET from NuGet

using (var metadata = new GroupDocs.Metadata.Metadata("input.mp3"))
{

		// Remove all mentions of any people contributed in file creation
		// Remove all properties with the specified name
		var affected = metadata.RemoveProperties(p => p.Tags.Any(t => t.Category == Tags.Person) || p.Name == "CustomProperty");

		Console.WriteLine("Affected properties: {0}", affected);

		metadata.Save("output.mp3");
}

Metadata Removal Live Demos

Delete metadata information of MP3 file right now by visiting GroupDocs.Metadata Live Demos website.
The live demo has the following benefits

No need to download API

No need to write any code

Just upload the source file

Get download link to save the file

About MP3 File Format

Files with MP3 extension are digitally encoded file formats for audio files that are formally based on the MPEG-1 Audio Layer III or MPEG-2 Audio Layer III. It was developed by the Moving Picture Experts Group (MPEG) that uses Layer 3 audio compression. Compression achieved by MP3 file format is 1/10th the size of .WAV or .AIF files. The format gives advantages of streaming such audio files over the internet for listening online that was previously not possible due to the large file sizes of audio files. Sound quality of an MP3 audio file can be controlled by parameter settings such as bit rate, sample rate, joint or normal stereo.

Read More About MP3 File Format

Deleting Metadata Properties From Other File Formats

Multi format documents and images metadata deletion API for .NET. Remove metadata of some of the popular file formats as stated below.

Remove PDF Metadata

(Adobe Portable Document Format)

Remove DOC Metadata

(Microsoft Word Document)

Remove DOCM Metadata

(Microsoft Word Macro-Enabled Document)

Remove DOCX Metadata

(Microsoft Word Open XML Document)

Remove DOT Metadata

(Microsoft Word Document Template)

Remove DOTX Metadata

(Word Open XML Document Template)

Remove XLS Metadata

(Microsoft Excel Binary File Format)

Remove XLSX Metadata

(Microsoft Excel Open XML Spreadsheet)

Remove XLSM Metadata

(Microsoft Excel Macro-Enabled Spreadsheet)

Remove XLTM Metadata

(OOXML Macro Enabled Workbook Template)

Remove PPT Metadata

(PowerPoint Presentation)

Remove PPS Metadata

(Microsoft PowerPoint Slide Show)

Remove PPTX Metadata

(PowerPoint Open XML Presentation)

Remove PPSX Metadata

(PowerPoint Open XML Slide Show)

Remove POTX Metadata

(Microsoft PowerPoint Open XML Template)

Remove POTM Metadata

(Microsoft PowerPoint Template)

Remove PPTM Metadata

(Microsoft PowerPoint Presentation)

Remove PPSM Metadata

(Microsoft PowerPoint Slide Show)

Remove ODS Metadata

(Open Document Spreadsheet)

Remove ODT Metadata

(Open Document Text)

Remove TIFF Metadata

(Tagged Image File Format)

Remove PNG Metadata

(Portable Network Graphic)

Remove GIF Metadata

(Graphical Interchange Format File)

Remove BMP Metadata

(Bitmap File Format)

Remove JP2 Metadata

(JPEG 2000 Core Image File)

Remove WEBP Metadata

(Raster Web Image File Format)

Remove PSD Metadata

(Adobe Photoshop Document)

Remove WMF Metadata

(Windows Metafile)

Remove EMF Metadata

(Enhanced Metafile Format)

Remove MPP Metadata

(Microsoft Project Document)

Remove MSG Metadata

(Microsoft Outlook E-mail Message)

Remove EML Metadata

(E-mail Message)

Remove DWG Metadata

(Autodesk Design Data Formats)

Remove DXF Metadata

(AutoCAD Drawing Interchange)

Remove ONE Metadata

(Microsoft OneNote)

Remove MP3 Metadata

(MPEG Audio Layer III)

Remove WAV Metadata

(Waveform Audio File Format)

Remove DICOM Metadata

(Digital Imaging & Comm in Medicine)

Remove AVI Metadata

(Audio Video Interleave File)

Remove VSD Metadata

(Microsoft Visio 2003-2010 Drawing)

Remove VSDX Metadata

(Microsoft Visio Drawing)

Remove VSS Metadata

(Microsoft Visio 2003-2010 Stencil)

Remove VDX Metadata

(Microsoft Visio 2003-2010 XML Drawing)

Remove VSX Metadata

(Microsoft Visio 2003-2010 XML Stencil)

Remove ZIP Metadata

(Archive File Format)

Remove EPUB Metadata

(Digital E-Book File Format)

Back to top
 English