So I'm using Python 3 and Mutagen, and I know how to remove ALL tag metadata from audio files.
For mp3 files, I simply have to use:
from mutagen.easyid3 import EasyID3
audio = EasyID3(filepath)
audio.delete()
audio.save()
For .flac I have to use:
from mutagen.flac import FLAC
audio = FLAC(filepath)
audio.delete()
audio.clear_pictures()
audio.save()
But what if I want to remove just a single tag? For example, what if I only want to clear ONLY the "date" tag? I'm not sure how to do this for either MP3 files or FLAC audio files, and I'd like to know how to do it for both. How would you clear only a single tag with Mutagen in Python? Thanks.