image
image

Go Back   macosx.com > Mac Help Forums > HOWTO & FAQs

Reply
 
Thread Tools
  #1  
Old December 12th, 2002, 12:32 AM
~departed~
 
Join Date: Jul 2002
Location: Kansas City, MO
Posts: 457
Thanks: 0
Thanked 0 Times in 0 Posts
gatorparrots is on a distinguished road
Selectively delete items in the trash

Issue this command to selectively empty the trash:
rm "/Users/yourusername/.Trash/nameoffiletodelete"
(Change rm to rm -rf if you want to delete a folder instead of a single file.)

If you want, you could add an alias to your .*shrc file that would allow you to specify the filename without typing the full path:
alias trash 'rm -rf /Users/yourusername/.Trash/\!:1'

So if you have a file called reallybigtiff.tiff in the trash, you could just type:
trash reallybigtiff.tiff
hit enter or return and it will delete the specified file for you.

If you desire more robust functionality, something modeled after testuser's script in this thread is possible: http://www.macfora.com/forums/showth...&threadid=6408
Reply With Quote
  #2  
Old December 13th, 2002, 11:21 AM
ksv's Avatar
ksv ksv is offline
liberal socialist
 
Join Date: Nov 2000
Location: Trondheim, Norway
Posts: 3,000
Thanks: 0
Thanked 0 Times in 0 Posts
ksv is on a distinguished road
Cool, I didn't know about that alias command. Thanks
__________________
leo at code.coop

Co-operatives are private corporations based on the values of self-help, self-responsibility, democracy, equality, equity and solidarity.
Reply With Quote
  #3  
Old December 13th, 2002, 11:59 AM
~departed~
 
Join Date: Jul 2002
Location: Kansas City, MO
Posts: 457
Thanks: 0
Thanked 0 Times in 0 Posts
gatorparrots is on a distinguished road
Or you can do it from the GUI

If you want to selectively remove files from the GUI (without taking a trip to the Terminal.app command line per my directions above), download one of these droplet applications that work like a file shredder. Anything you drag to the icon is pretty much irrevocably removed.

Force Delete 1.2
http://versiontracker.com/moreinfo.fcgi?id=16093&db=mac

or Shredder 1.2
http://versiontracker.com/moreinfo.fcgi?id=16499&db=mac
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ugh! Faster way to empty Trash? Or delete huge amounts? Jasoco Mac OS X System & Mac Software 4 December 22nd, 2002 07:21 AM
[HOWTO] - Empty the trash of stubborn items swizcore HOWTO & FAQs 22 December 15th, 2002 04:12 AM
Locked PC files in trash will not delete! tk4two1 Mac OS X System & Mac Software 6 June 5th, 2002 06:00 PM
Can't delete or move items from trash. chenly Mac OS X System & Mac Software 5 April 1st, 2002 05:07 PM
problems w/ locked trash items and privledges edX Mac OS X System & Mac Software 1 December 17th, 2001 08:30 PM


All times are GMT -5. The time now is 11:22 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.