Search code examples
pythonmp3metadatamutagen

How can I use mutagen.py to clear mp3 metadata?


I'd like to clear all metadata in an MP3 file, and I'm already using Mutagen in my project. Is there a way I could simply clear all the metadata from the file?


Solution

  • It looks like you can use the delete method of the MP3 object:

    mp3 = MP3(fname)
    mp3.delete()
    mp3.save()
    

    Source: Remove ID3 tags from MP3 files