Strange files in Trash

Joined
Sep 12, 2009
Messages
368
Reaction score
10
Points
18
Location
Long Island, New York
Your Mac's Specs
iMac 21.5 (2019)
Imac issue. There are three "strange" files in my Trash. I have no idea how they got there.

They have no readable names, just a bunch of characters. All three show 0 KB in size.

Two of them are listed as "Alias" and one is listed as an "Unix Executable" file.

When I try to delete them, I get a warning box with three options:

- Cancel

- Remove Unlocked Items

- Remove All Items

No matter what I try, they cannot be deleted.

What is going on?
 
Joined
Oct 10, 2004
Messages
10,345
Reaction score
597
Points
113
Location
Margaritaville
Your Mac's Specs
3.4 Ghz i7 MacBook Pro (2015), iPad Pro (2014), iPhone Xs Max. Apple TV 4K
Select "Secure Empty Trash" from the FINDER Menu and they should delete.
 
Joined
Feb 22, 2011
Messages
368
Reaction score
14
Points
18
Location
Portland, OR
Your Mac's Specs
MacBook Pro|15" Hi-Res Anti-Glare|2.2 GHz quad i7|4GB RAM
You can try two things. First, check the files in there by holding down command (  ) and clicking on the items. Click on "Get Info" and check to see if the "Locked" box is checked on any of the files. If it is, un-check it! Do the same thing for the other files.

20110430-xyf6f1g3h9std3mtj9j47ncjj3.jpg


Then try emptying the trash.

If that doesn't work, force empty the trash by following these steps from The X Lab.

Press and hold the mouse button on the Trash icon in the Dock. The context menu for Trash will display.

1) Press and hold the Option key.
2) Select Empty Trash from the context menu for Trash.
3) Release the Option key.
 
OP
F
Joined
Sep 12, 2009
Messages
368
Reaction score
10
Points
18
Location
Long Island, New York
Your Mac's Specs
iMac 21.5 (2019)
You can try two things. First, check the files in there by holding down command (  ) and clicking on the items. Click on "Get Info" and check to see if the "Locked" box is checked on any of the files. If it is, un-check it! Do the same thing for the other files.

If that doesn't work, force empty the trash by following these steps from The X Lab.

Got rid of the "Unix Executable" file using the "Get Info". Thanks.

Neither suggestion works with the other two files.

Tried changing the name of the both remaining files using "Get Info", but it comes up with an error (-43) and won't let me modify its name.
 

bobtomay

,
Retired Staff
Joined
Dec 22, 2006
Messages
26,561
Reaction score
677
Points
113
Location
Texas, where else?
Your Mac's Specs
15" MBP '06 2.33 C2D 4GB 10.7; 13" MBA '14 1.8 i7 8GB 10.11; 21" iMac '13 2.9 i5 8GB 10.11; 6S
Re-boot the machine.
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
Hold down Option when you empty trash.
 
OP
F
Joined
Sep 12, 2009
Messages
368
Reaction score
10
Points
18
Location
Long Island, New York
Your Mac's Specs
iMac 21.5 (2019)
No help on a reboot or holding down the Option key when I try to empty the trash.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
Open up a Terminal (/Applications/Utilities) and type the following:
Code:
sudo rm -rf ~/.Trash/*
It will ask for your password - just type it in and press enter. When you're typing your password, it will appear as if nothing is being typed - this is normal.
 
OP
F
Joined
Sep 12, 2009
Messages
368
Reaction score
10
Points
18
Location
Long Island, New York
Your Mac's Specs
iMac 21.5 (2019)
Open up a Terminal (/Applications/Utilities) and type the following:
Code:
sudo rm -rf ~/.Trash/*
It will ask for your password - just type it in and press enter. When you're typing your password, it will appear as if nothing is being typed - this is normal.

Here's the copy & paste:

Last login: Sat Apr 30 19:42:33 on console
Arthur-Mounts-iMac:~ arthurmount$ sudo rm -fr ~/.Trash/*
Password:
Arthur-Mounts-iMac:~ arthurmount$

Is something else supposed to occur? This doesn't fix it . . . even after a reboot. :Confused:
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
You don't want anything printed back so it would appear that the command has been executed properly. Do the files disappear at all?
 
OP
F
Joined
Sep 12, 2009
Messages
368
Reaction score
10
Points
18
Location
Long Island, New York
Your Mac's Specs
iMac 21.5 (2019)
You don't want anything printed back so it would appear that the command has been executed properly. Do the files disappear at all?

Files are still there. Could there be another step?
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
The rm command I gave you should remove anything you tell it to (in this case, everything in your Trash). It executed successfully so I'm tempted to say that the files are being recreated. I'm out of ideas right now but I'll get back to you if I think of something.
 
OP
F
Joined
Sep 12, 2009
Messages
368
Reaction score
10
Points
18
Location
Long Island, New York
Your Mac's Specs
iMac 21.5 (2019)
The rm command I gave you should remove anything you tell it to (in this case, everything in your Trash). It executed successfully so I'm tempted to say that the files are being recreated. I'm out of ideas right now but I'll get back to you if I think of something.
I was out of ideas 6 messages ago. :)

Thanks, I'll check tomorrow.
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
If the files are still showing up in Finder try this: in Terminal type...
ls -la ~/.Trash
Do they still show up? If not try clearing the caches using something like Onyx or Applejack, and rebooting.
 
OP
F
Joined
Sep 12, 2009
Messages
368
Reaction score
10
Points
18
Location
Long Island, New York
Your Mac's Specs
iMac 21.5 (2019)
If the files are still showing up in Finder try this: in Terminal type...
ls -la ~/.Trash
Do they still show up? If not try clearing the caches using something like Onyx or Applejack, and rebooting.


I'm assuming that the first character in the following is a lower case "L" as in lima? "ls -la"

Anyway, this is what it looks like . . . as you can see I did it twice.

Last login: Sun May 1 11:17:20 on ttys000
Arthur-Mounts-iMac:~ arthurmount$ ls -la ~/.Trash
total 0
drwx------ 2 arthurmount staff 68 May 1 11:26 .
drwxr-xr-x+ 24 arthurmount staff 816 May 1 09:13 ..
Arthur-Mounts-iMac:~ arthurmount$ ls -la ~/.Trash
total 0
drwx------ 2 arthurmount staff 68 May 1 11:26 .
drwxr-xr-x+ 24 arthurmount staff 816 May 1 09:13 ..
Arthur-Mounts-iMac:~ arthurmount$

Still no help. Will do some research on Onyx or Applejack as I've never heard of either. Thanks!!
 
OP
F
Joined
Sep 12, 2009
Messages
368
Reaction score
10
Points
18
Location
Long Island, New York
Your Mac's Specs
iMac 21.5 (2019)
Just noticed this on both files using GET INFO

Kind: Alias

Size: Zero KB on disk (Zero bytes)

Where: /Volumes/BOOTCAMP/.Trashes/501

Looks to me like perhaps this is something in the Boot Camp area where I run Windows XP?
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
Ah, these are on a Bootcamp partition. The commands I gave you were for the Mac side of things. (BTW: yes those were lowercase L's, and you did it right)

Things on a Bootcamp partition "shouldn't" show up in your trash when running OS X, I don't think. Tried booting into XP and emptying trash there?
 

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
Things on a Bootcamp partition "shouldn't" show up in your trash when running OS X, I don't think. Tried booting into XP and emptying trash there?

They'll show up if your Boot Camp partition is formatted to FAT-32 and you deleted files on the BC partition when in OS X. The Trash would then have to be emptied from OS X, not Windows.
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
Ah, learn something every day. Should have guessed something when I saw the /501 in the path.
I have Vista installed and haven't come across this before.
 

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