Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 497647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:48:06+00:00 2026-05-13T05:48:06+00:00

I found the command mdls which will show the metadata but I can’t see

  • 0

I found the command “mdls” which will show the metadata but I can’t see how to delete it.

I want to get rid of the comments “kMDItemFinderComment”, “kMDItemWhereFroms” from my files.

Is there a way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T05:48:06+00:00Added an answer on May 13, 2026 at 5:48 am

    I think you’re looking for the xattr command, available in Terminal:

    xattr -pr com.apple.metadata:kMDItemFinderComment /
    

    that will print all the finder comments for all files on your boot volume. To delete, use the -d switch:

    xattr -dr com.apple.metadata:kMDItemFinderComment /
    

    You should test this out on a single file before running it in bulk.

    usage: xattr [-l] [-r] [-v] [-x] file [file ...]
           xattr -p [-l] [-r] [-v] [-x] attr_name file [file ...]
           xattr -w [-r] [-v] [-x] attr_name attr_value file [file ...]
           xattr -d [-r] [-v] attr_name file [file ...]
    
    The first form lists the names of all xattrs on the given file(s).
    The second form (-p) prints the value of the xattr attr_name.
    The third form (-w) sets the value of the xattr attr_name to the string attr_value.
    The fourth form (-d) deletes the xattr attr_name.
    
    options:
      -h: print this help
      -r: act recursively
      -l: print long format (attr_name: attr_value and hex output has offsets and
          ascii representation)
      -v: also print filename (automatic with -r and with multiple files)
      -x: attr_value is represented as a hex string for input and output
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Ubuntu Linux. I found one command will let me download unread message
Suppose I type saklfjsklj in bash, I get: bash: saklfjsklj: command not found Is
I've found lots of libraries to help with parsing command-line arguments, but none of
I'm trying to write a command that will delete all functions in a namespace.
Doing a Google search I found several command-line SCEP clients that I can download
I found that Windows command line redirection will replace '\n' with '\r\n' automatically. Is
I want to pixelate and/or blur an image. I've found the command for the
I am not exactly a pro at BASH Scripting, but I can get by
I know very little SQL, but found a command for SQL Server to add
I found this command line search and replace example: find . -type f -print0

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.