To delete the list of flash drives/pen drives history connected to your Mac, you can follow the steps below:
- Open the Terminal application on your Mac. You can find it by using the Spotlight search or by navigating to Applications > Utilities > Terminal.
- 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.