Hello everybody I used my Mac to erase a user account today, however I chose to delete the home folder instead of backing up any files. Can I restore the deleted Mac user account and the files? As the files were extremely important, I would appreciate hearing any suggestions you may have for getting them back.
While you delete a Mac user account, a window pops up to ask āAre you sure you want to delete the user account āusernameā?ā, and provides there options for you, including:
- Save the home folder in a disk image(The disk image is saved in the Deleted Users folder(in the Users folder).)
- Donāt change the home folder(The home folder remains in the Users folder.)
- Delete the home folder
If you select the first two options, it is pretty easy to restore the User account and its data. However, if you choose Delete the home folder, it will immediately remove the user account and the files from your Mac. The deleted files wonāt go to the Mac Trash, and you canāt find them anywhere on your Mac.
In this situation, it is still possible to recover files from a deleted Mac user account, there are two ways, using a backup such as Time Machine or applying third-party data recovery software such as iBoysoft Data Recovery for Mac.
Recover files from a deleted Mac user account via Time Machine backup
If you have created a backup for your Mac before the deletion, you can restore the deleted user files from your backup with ease. Time Machine is the default backup method on macOS. If you have previously enabled Time Machine and plugged the backup drive into your Mac, it should automatically back up the Mac or you have manually backup the Mac when the user data hasnāt been removed, you can follow the steps below to recover the user files:
- Connect your Mac with the Time Machine backup drive. Enter password if required.
- Click the Time Machine icon at the menu bar and choose Enter Time Machine.
- Scroll over to find the deleted user folder you need to recover from the Time machine or use the Up/Down arrows.
- Select the desired file and press Space Bar to preview it.
- Click Restore to recover wanted items. You can check the file at its original location.
If you have backed up certain files of the deleted user with other methods such as iCloud Drive or other cloud storage, external hard drives, etc., you can also get the deleted user files within the backup.
Recover files from a deleted Mac user account with data recovery software
Not everyone has the habit of backing up Mac regularly, and when an unexpected situation happens, third-party data recovery software is what you can rely on to recover lost/deleted files. Among them, iBoysoft Data Recovery for Mac is a good choice.
This professional data recovery software is fully compatible with the latest macOS Sequoia and works on both Intel Macs and Apple Silicon Macs, it can scan the selected internal and external hard drives to search for lost and deleted files, as long as the data hasnāt been overwritten, you can recover the desired items with iBoysoft Data Recovery for Mac. Hereās how:
- Free download iBoysoft Data Recovery for Mac.
- Install and launch the data recovery software, click Storage Devices on the left sidebar, and choose your Mac drive, usually namely Macintosh HD.
- Then click the Search for Lost Data and click Start.
- Filter the scanned results and preview them to find the wanted items.
- Tick the box of wanted files and click Recover.
There is no backup , and I will try the data recovery software you recommend. I hope it can save the deleted user folder!
I have another question, if I delete another user account later, choose one of the first two options: save the home folder in a disk image, or donāt change the home folder, how can I restore the user account and the data inside it?
Depending on the option you choose while deleting the Mac user account, you can restore the deleted account and data inside it with the corresponding solutions.
Restore the account if you have saved the folder as a disk image
If you select āSave the folder as a disk imageā when removing a user account from a Mac, you can apply the steps below to recover the user account and data from the disk image.
- Open the Finder and click Go > Go to Folder. Copy & paste /Users/Deleted Users and hit Enter. The deleted userās disk image file will show up named as AccountName.dmg.
- Open another Finder window by clicking File > New Finder Window. In this window, navigate to the Users folder.
- Press and hold the Option key and drag the disk image onto the Users folder. After that, authenticate it with your Macās password or Touch ID.
- Open System Settings, go to Users & Groups > Add Account > enter your Macās admin password, and hit Unlock.
- Follow the regular steps to create a new user. Ensure the Account Name is exactly the same as the deleted userās home folder you restored just now.
- Follow the onscreen guide, then click Create User. When it prompts āThe Users folder already contains a folder with the same name as the home folder for this accountā message, select Use Existing Folder.
Restore the account if you havenāt changed the home folder
You can also choose Donāt change the home folder while deleting a user account on Mac, it will keep the user folder on your Mac, and you can restore it with the following steps:
- Go into the Finder and click Go > Go to Folder. Type /Users and hit Enter.
- In the Users folder, locate the user folder of the deleted user account, named Account Name(Deleted).
- Select that User(Deleted) folder and hit Enter to rename it. Now, remove the (Deleted) part of the name and leave the rest as it is. Enter your Mac password if asked.
- Then, create a new user account on your Mac as usual, and use the same Account Name as the user folder name you see in step 2 above. When prompted, click Use Existing Folder to restore the deleted user account.