Skip to content

Document that remove_<tag> and TagType::remove_from are not equivalent #610

Closed

Description

@Serial-ATA

<File>::remove_<tag> will only remove the tag in memory, it does not affect the final write. TagType::remove_from() will remove the tag on disk.

For example:

let mut file = File::open("foo.flac").unwrap();
let mut flac = FlacFile::read_from(&mut file).unwrap();
flac.remove_id3v2();

Will remove the tag from the FlacFile. That's useful if the tags from the FlacFile need to be copied to another file, without first needing to strip the ID3v2 tags from it.

TagType::Id3v2.remove_from_path("foo.flac").unwrap();

// or

let mut file = File::open("foo.flac").unwrap();
TagType::Id3v2.remove_from(&mut file).unwrap();

This is what actually removes the ID3v2 tag on disk.

Activity

  1. added
    docs
    good first issue
    on Feb 14, 2026
  2. samanshaiza004 commented on Jul 7, 2026

    @samanshaiza004
    Contributor

    I'd like to work on #610 and #357. Since they're both documentation improvements around the metadata/tagging API, would you prefer one PR that addresses both, or separate PRs? I'm happy to do whichever is easier to review.

  3. Serial-ATA commented on Jul 7, 2026

    @Serial-ATA
    OwnerAuthor

    Hey @samanshaiza004, thanks for picking these up! This one should be pretty small, so feel free to combine them into a single PR if you want. But since they're just doc revisions I'm fine reviewing either way :)

  4. added this to the 0.25.0 milestone on Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions