MacOS: Delete MacOS filesystem using Windows terminal command

Problem:

As a dual OS user: MacOS and Windows, sometimes I get annoyed with hidden directories of MacOS.

MacOS creates these particular directories inside all flash drive that plugged into the machine.

And those directories are visible when we open the flash drive in Windows machine.

The naming starts with dot (.) and duplicates existing non-hidden directories. This redundant naming is confusing for me especially in a situation when my flash drive has many directories.

Solution:

Since this happen only at Windows, here are the steps to delete the hidden files:

  1. Open cmd window
  2. Change directory to flash drive location with cd command
  3. Show hidden files with command: dir /a:h
  4. Delete hidden files with command: del * /s /q /f /a:h

Reference:

Leave a comment

Design a site like this with WordPress.com
Get started