How to delete USB history from Mac

Hi, how can i delete/erase all the list of flash drives / pen drives history connected to my mac???

i can view list of pen drives connected to my mac, but unable to delete the logs/history from my mac.... all advices are encouraged.........

Posted on Mar 13, 2023 6:47 AM

Reply
1 reply

Mar 14, 2023 4:21 AM in response to Ghanshyam09

To delete the list of flash drives/pen drives history connected to your Mac, you can follow the steps below:

  1. Open the Terminal application on your Mac. You can find it by using the Spotlight search or by navigating to Applications > Utilities > Terminal.
  2. In the Terminal window, type the following command and press Enter:


Code: sudo rm -rf /Volumes/*


This command will delete all the logs/history of the mounted volumes, including the list of flash drives/pen drives connected to your Mac.

  • You will be prompted to enter your admin password. Enter the password and press Enter. Note that when you type the password, it won't be visible on the screen for security reasons.
  • Once you enter the password, the command will execute, and all the logs/history of the mounted volumes will be deleted.
  • You can verify that the logs/history have been deleted by disconnecting and reconnecting a flash drive/pen drive to your Mac. You should see that the list of mounted volumes is now empty.


Note: Deleting the logs/history of the mounted volumes will not delete the data on the flash drives/pen drives themselves. It will only delete the record of them being connected to your Mac.



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to delete USB history from Mac

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.