Questions tagged [delete]

The tag has no usage guidance.

15 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
23 views

How can I delete all network users on startup or shutdown?

I want to run this script before any student logs into the computers daily. #!/bin/sh mv /Users/admin /admin wait $pid mv /Users/Shared /Shared wait $pid rm -rf /Users/* wait $pid mv /admin /...
3
votes
0answers
2k views

Deleting and creating users with terminal in recovery mode?

would anyone know how to delete and create user accounts in recovery mode? Precise steps would be awesome because im not too experienced with UNIX. I already tried the userdel and useradd in urs\sbin ...
2
votes
0answers
42 views

Recovering a deleted file on MacOS

There is an old Unix trick for attempting to recover a deleted file where you run $ sudo grep -C100 string-known-to-be-in-file /dev/sda1 which takes a very long time, but can at least recover a ...
2
votes
0answers
48 views

How do I remove a single key combination from the Mac Keyboard shortcut menu?

I know I can set shortcuts by clicking on none and entering my chord. But I can't figure out how to set it back to none without clicking "Restore Defaults" which destroys my entire config, also it ...
2
votes
0answers
50 views

Admin account no longer accessible on MacBook Pro running El Capitan 10.11.6

After installing El Capitan, I cannot login to the admin account I was using for the install. I have other admin accounts that work fine, but this was the main one I use with all my important files. I ...
2
votes
0answers
318 views

Help Deleting 150 Million + Items from Trash on Mac

I have over 150 million files to delete on my Mac, and I've run all the versions of rm -rf ~/.Trash/* in Terminal and nothing has happened. Can somebody please explain to me how to delete these files ...
2
votes
0answers
155 views

fn + backspace (delete) works just at the second time as expected

I'm facing a weird misbehavior on my MacBook Pro (Retina). I switched the operating language from German to English several days ago. Since then, I can't use the "delete" button (fn + backspace) ...
1
vote
0answers
19 views

Qemu Files not deleting “No Such File Or Directory Found”

I have some malware that installed crypto mining on my mac - I'm trying to delete all the files in terminal but keep coming up with "No Such File Or Directory Found" as an error. I'm tearing my hair ...
1
vote
0answers
501 views

How do I delete photos from my iPhone without also deleting them from my Mac (both are connected to iCloud)

I currently have about 7k-8k photos and videos stored on my Mac. Recently, I purchased 200 GB iCloud plan so I can have access to all my photos and videos on my iPhone. I dragged my Photos library ...
1
vote
0answers
1k views

How to securely `shred` a file in Mojave/APFS?

I just came across this thread about securely deleting files: If, by stroke of misfortune, you're on a magnetic medium, have journalling disabled and, for some reason, can't encrypt the disk, ...
1
vote
0answers
561 views

I have no photos in my album but it still says that it takes 508 MB of space on my iphone

So I have no photos in my phone, but it still says that it takes 508 MB when I look at my usage in settings. There is literally no photos at all, even the recently deleted has been deleted, and I don'...
1
vote
0answers
5k views

“Unable to delete the user account” in Users & Groups?

On OS 10.9.2, with permissions unlocked, my admin user gets "Unable to delete the user account [username]" when I click the "minus" delete button. I checked the option to archive the user in the ...
0
votes
0answers
18 views

Forward deleting (Macports/bash): Is there an alternative to Fn+Delete and Control+D?

As a more general version to this question, is there a way to forward-delete in a bash terminal that doesn't involve Fn+Delete or Control+D? Motivation: When using the Macports port command ...
0
votes
0answers
26 views

Cannot Delete Directory (Advanced Mac Tuneup) Even with Sudo Commands in Terminal

An adware virus disguised as Adobe Flash update installed an app called Advanced Mac Tuneup. I deleted the app but some associated files still remain. The command sudo rm -rf NAME returns the message ...
0
votes
0answers
15 views

Delete only photos that are NOT in any other album

I have thousands of photos on my phone. Perhaps a hundred or so are "tagged" in other albums (like Favorites or special event albums I've created). I have all of my photos backed up, so I won't lose ...