Can I delete from SD card without emptying trash?

Joined
Dec 30, 2012
Messages
63
Reaction score
0
Points
6
Your Mac's Specs
MacBook Air M1 2020, 8GB, 512GB, Ventura 13.2
On Mountain Lion is it possible to delete from an SD card without emptying the trash on my MacBook Pro?
 
Joined
Oct 22, 2007
Messages
8,967
Reaction score
287
Points
83
Location
London
Your Mac's Specs
Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver
You could reformat the card instead
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
You can in Terminal. cd to /Volumes/nameofSDcard
Type: rm filename
Be very careful what you delete.
 
OP
J
Joined
Dec 30, 2012
Messages
63
Reaction score
0
Points
6
Your Mac's Specs
MacBook Air M1 2020, 8GB, 512GB, Ventura 13.2
Thanks Cradom. But I don't understand why Mac makes you go through all this. I see you went back to Snow Leopard. Is it the same on that OS?
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
It's the same no matter the version of OS. Putting stuff in the trash on an external drive requires emptying the trash to delete it, which empties all the trash on all connected drives.
I THINK there's a hotkey combo which lets you immediately delete a file without putting it in the trash but my old brain can't remember right now.
(EDIT) Can't find it, maybe you'll have better luck? OS X keyboard shortcuts
 
Joined
Nov 28, 2007
Messages
25,564
Reaction score
486
Points
83
Location
Blue Mountains NSW Australia
Your Mac's Specs
Silver M1 iMac 512/16/8/8 macOS 11.6
And the same with Windows also. Regardless if external hard drive, USB thumb drive or SD card.
 

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,248
Reaction score
1,833
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
But I don't understand why Mac makes you go through all this.

Windows works exactly the same way. An external drive must be attached before you can empty the recycle bin from items you deleted on the drive. So what's the difference?
 
OP
J
Joined
Dec 30, 2012
Messages
63
Reaction score
0
Points
6
Your Mac's Specs
MacBook Air M1 2020, 8GB, 512GB, Ventura 13.2
need to learn

You can in Terminal. cd to /Volumes/nameofSDcard
Type: rm filename
Be very careful what you delete.

Sorry cradom, I'm new to terminal and I was unsuccessful in deleting the files. I typed in
cd to /Volumes/nameofSDcard (I put the name in) but that gave errors

then I typed in
/Volumes/nameofSDcard (followed by) rm filename (entered one filename)

Once I open terminal, exactly what all do I have to type in?
 
Joined
May 14, 2009
Messages
2,052
Reaction score
136
Points
63
Location
Near Whitehorse, Yukon
Your Mac's Specs
2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9
Read ALL of this through first and then do it step by step.

Type & enter
Code:
cd /Volumes/nameofSDcard
Tip: You can type cd /Vo, hit tab to have it autocomplete to /Volumes/, type the first few letters of your sd card name and hit tab again to autocomplete.

Spaces need to be preceded by a backslash.
Example:
Code:
cd /Volumes/NIKON\ D7000/

Delete the .Trashes folder on the SD card, copy/paste and & enter. Needs admin password.
Code:
sudo rm -rf .Trashes

Make a .Trashes file that cannot store deleted files ;) , copy/paste & enter
Code:
touch .Trashes

Now when you delete a file, it will be gone forever on the spot.
If you reformat the card, you will have to do this over though.
 
Joined
Jul 30, 2009
Messages
7,298
Reaction score
302
Points
83
Location
Wisconsin
Your Mac's Specs
Mac Mini (Late 2014) 2.6GHz Intel Core i5 Memory: 8GB 1600MHz DDR3
Thanks Cradom. But I don't understand why Mac makes you go through all this.

I think it's because the user has to give the instructions. If it were possible to do what you're asking for, then each and every time you went to empty anything from the trash, you'd have to specify exactly what you wanted to go. It think you'd find that to be more of a pain than the way it is.

One alternative is to clear out your trash of other things before you toss anything from the SD card, whether that means moving them back onto the Desktop temporarily or whatever. Then when you delete from the card, you can empty everything and put the other things back in the trash. (I guess I'm assuming that the issue you have with it is that you are holding things in the trash that you're not quite sure you want to be irretrievable yet.)
 
OP
J
Joined
Dec 30, 2012
Messages
63
Reaction score
0
Points
6
Your Mac's Specs
MacBook Air M1 2020, 8GB, 512GB, Ventura 13.2
I suppose, especially with a novice like me, Apple often knows best....
Thanks for the reply toMACsh
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top