Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Henry V

macrumors member
Original poster
Jul 24, 2020
61
1
I cannot understand when I am told I can remove some files, but others cannot be removed as I do not have permission.
How do I remove these stubborn files?
 

DeltaMac

macrumors G5
Jul 30, 2003
13,754
4,579
Delaware
Can you tell us what you mean by "residue files"?
There are folder locations on your Mac where the system may normally stop you from modifying the contents, and you might only be able to remove what you want by disabling some of the security measures in your macOS system.
Can you give an example, with the file's location?
 

Henry V

macrumors member
Original poster
Jul 24, 2020
61
1
I had some 'Little Snitch' files left when the Application was removed.
Some I could delete, but others would not be removed:-
See attached.
Little Snitch.png
 

DeltaMac

macrumors G5
Jul 30, 2003
13,754
4,579
Delaware
You would probably be able to delete those various leftover files after disabling SIP.
Boot to your recovery system, open the terminal from the Utilities menu, and type the command:
csrutil disable
Restart your Mac, then try some of the files that you want to remove.
If you can delete your files, re-enable SIP by doing the same process to boot to recovery, then the terminal command: csrutil enable
And, restart to return to a normal boot.
Some here may say you don't need to re-enable SIP. I choose to disagree with that opinion.
 

Fishrrman

macrumors Penryn
Feb 20, 2009
29,233
13,303
"Is there no other way??"

If you want those files gone, you do what you have to do.
Sometimes there is no other way.

One other thing you can try:
Go back to what we see in reply 3 above. (is that a spotlight search? I don't use spotlight)
Click on the first file in the list ONE time to select it. Then...
Type "command-delete" (this would normally move file to the trash)
You may get a dialog saying that your password is needed.
Enter it.

Does the file now disappear into the trash?
If so, you need to repeat this process for EVERY file in the list.

Again, sometimes you have to do, what you have to do.
 

Henry V

macrumors member
Original poster
Jul 24, 2020
61
1
When I try to delete by pressing command & delet buttons I get this - see attached.
Where do I type "command-delete"??
If I highlight a file and type I get the jingle on each letter?
snitch files.png
 

Mr.Fox

macrumors 6502
Oct 9, 2020
282
198
I cannot understand when I am told I can remove some files, but others cannot be removed as I do not have permission.
How do I remove these stubborn files?
1. restart the computer
2. Ctrl+click on the file you want to unlock.
3. Select “Get Info.”
4.Click to expand the “General” section.
5. Locate the “Locked” checkbox and uncheck it.
If you can't and want to do it very quickly and own a terminal, then:
1. Open Terminal (Applications -> Utilities -> Terminal) and type the following command:
chflags nouchg /path/to/file
When the file is unlocked, you can delete it as usual.

You may get a delete error saying “You do not have permission to edit the file and delete”. Then do the following:
1. Ctrl+click the appropriate file.
2. Select Get Info.
3. Click to expand the “Sharing and Permissions” section. You will see a list of all user accounts registered on your Mac.
4. To authorize yourself to edit this file, click the little lock icon.
5. When prompted, enter your username and password.
6. Find your username in the list, click the corresponding set of arrows, then select Read & Write.
7.Delete unwanted file(s)

If it doesn't want to delete and it shows “file lock error”, “delete error”. then we do this:
Open terminal.
Type the command “sudo rm -R”, but do not press Enter.
Find the file you want to delete. Drag it into the terminal window. This will add the file name and path to the terminal command.
Enter the administrator password and press Enter.
Deleting files using the terminal requires extreme caution, as a small mistake can complicate things even further.
 

Attachments

  • 2024-11-04_23-57-58.jpg
    2024-11-04_23-57-58.jpg
    19.2 KB · Views: 8
  • 2024-11-04_23-55-09.jpg
    2024-11-04_23-55-09.jpg
    22.8 KB · Views: 11
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.