18

I have downloaded an .mkv files from Safari. When I open "Info" in Finder on the file, I see the following link to where it was downloaded from:

enter image description here

How can I remove that metadata from the file?

0

2 Answers 2

34

The link listed in "Where from" is stored as an extended attribute named "com.apple.metadata:kMDItemWhereFroms" on the file in the file system - it is not actually saved within the .mkv file itself.

You can remove it by opening Terminal.app and running the following command:

xattr -d com.apple.metadata:kMDItemWhereFroms filename.mkv

where filename.mkv is to be replaced with the actual path and name of the file. The easiest way to do that is simply to write the first part of the command, and then drag the .mkv file into the Terminal.app window.

2
  • 3
    If that can help anyone else looking for removing those data recursively in a folder, the -r parameter should be added: xattr -r -d com.apple.metadata:kMDItemWhereFroms /Folder
    – legibe
    Commented Dec 22, 2021 at 2:32
  • I get "No such xattr: com.apple.metadata:kMDItemWhereFroms"
    – MaduKan
    Commented Aug 8, 2023 at 0:25
3

Finder let’s you you right click on the urls in where from.

There is an option to remove urls.

This fixed the issue for me without needing a command line prompt.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .