I can think of a couple of things.
First, try deleting everything in your .Trash
folder with sudo privileges:
sudo rm -rf ~/.Trash/*
If that fails, then try resetting the PRAM on your Mac. Sometimes doing so can surprisingly fix odd errors.
Finally, make sure that the permissions on your .Trash
folder are correct
ls -ale ~/.Trash/
The permission for the folder should be like the following:
drwx------ 24 username staff 816 Mar 24 22:06 .
drwxr-xr-x+ 34 username staff 1156 Mar 24 09:51 ..
First of all BE INCREDIBLY CAREFUL WHEN USING RECURSIVE DELETE FROM TERMINAL
Next, just make sure that the applications that might have used these are closed.
That warning out of the way, here is how you can do it.
- First open
Terminal
(in /Applications/Utilities).
- Type
cd ~/Downloads
and press Return
.
- Then type
sudo srm -f
followed by a Space
(don’t leave out the spacel). Try this first if it doesn't work then use sudo srm -Rf
which is the recursive form of this command
- Don’t press
Return
yet.
- Next, in
Finder
open a window displaying the contents of the Downloads
folder.
- Select ONLY the files in that window that you want deleted and drag them into the Terminal window; this adds the paths of all the files to the
rm
(remove) command.
- Now, press
Return
- Enter your administrator password when prompted
In a moment or two the files should be gone.
The same premise works with the Trash folder as well, with a few modifications and you may want to do this as the file may actually be there but hidden.
- First open
Terminal
(in /Applications/Utilities).
- Type
cd ~/.Trash
and press Return
.
- Then type
sudo srm -Rf
followed by a Space
(don’t leave out the space). You will need the recursive for to handle subdirectories, etc.
- Don’t press
Return
yet.
- Next, click the
Trash
icon in your Dock
to open a window displaying the contents of the Trash
.
- Select everything in that window and drag it into the Terminal window; this action adds the paths of all those files and folders to the
rm
(remove) command.
- Now, press
Return
- Enter your administrator password when prompted
In a moment or two (depending on how much was in your Trash), the Trash icon should return to its empty state.
To check to see if there are hidden files you can do this.
defaults write com.apple.finder AppleShowAllFiles true
killall Finder
and then to hide them again you can do:
defaults write com.apple.finder AppleShowAllFiles false
killall Finder
I hope that helps, and I really hope that you don't delete things you don't want to... These are powerful tools, and With Great Power Comes Great Responsibility.
Update
The file that you are looking to delete, the one that says *.part
is a file extension indicating that a file was downloaded partially.
This likely occured when Firefox, Skype, or another app able to download from the internet stopped a download mid-download.
Take a look Downloads on your browser, command-J
on Firefox, shift-command-J
on Chrome, and alt-command-L
in Safari, and see if any of the files there has a partial download. You should be able to cancel the download there and then that file should clear up, or stop reappearing after you download it.
-- The answer I provided is based on the technique that I obtained from Joe Kissell's article on MacWorld and have used during the times I have not been able to empty my trash bin.
Best Answer
I am surprised that no one has answered it.
If XQuartz was installed prior to installing Catalina then this X11 folder will exist. Uninstall your version of XQuartz using this gist (ideally before upgrading macOS). However, you have already upgraded to Catalina so the X11 shortcut folder can't be deleted as it appears in your desktop as a relocated item. If you want to know more, you can check the pdf folder too.
Here is a solution that you can do on your side:
csrutil disable
csrutil enable