How to delete .Trashes/* on NTFS drive on Mac?

7,445

The subfolders in the .Trashes-Folder are the Trash-Bins of the users that have logged into the system. Therefore those Trash-Folders belong to the specific users and no one else has a right to access them. So to delete those folders you will have to log in as a System-admin and issue the following command on the Commandline:

sudo rm -rf /Volumes/mydrive/.Trashes/*

That way the rm-Command will be issued as superuser who is alloewd to remove folders belonging to others.

Those folders will be recreated once the user logs in again! So after you log in as system-administrator there will again be a folder /Volumes/mydrive/.Trashes/501.

At least that way it works on a default HFS+-Volume. As NTFS is more restrictive with access-rights you might have to use a different approach.

But why do you want to delete it in the first place? As after emptying the TrashBin the folder is empty it is not really wasting space and as it has a dot in the name it shouldn't even pop up in the UI - even on Windows.

Share:
7,445

Related videos on Youtube

qazwsx
Author by

qazwsx

Updated on September 18, 2022

Comments

  • qazwsx
    qazwsx over 1 year

    I installed Tuxera NTFS for Mac 2013.2 on Mac OS X 10.9. I find that /Volumes/<some NTFS drive>/.Trashes/* on a NTFS drive I mounted on Mac cannot be deleted. Any idea?

    Things I tried in vain:

    • $ rm -rf /Volumes/mydrive/.Trashes/*
    • empty trash bin in Dock using GUI
  • qazwsx
    qazwsx about 10 years
    I just want to empty /Volumes/<my NTFS partition>/.Trashes/<some folder>. When I try sudo rm -rf /Volumes/<my NTFS partition>/.Trashes/<some folder>, it gives errors saying rm /Volumes/<my NTFS partition>/.Trashes/<some folder>: Directory not empty . Any ideas?