Celeb Glow
news | March 22, 2026

How to recover a deleted user account

I have deleted a user account using the command userdel -r george. It deleted that user with their files. I need to restore that user and their files, is it possible? How can I achieve it?

1 Answer

Not easily, no. The files have been deleted, you will need to use a tool that can recover deleted files, there is no undo for this. For help on recovering deleted files, see this Q&A:

How to recover deleted files?

Recreating the user is the easy part:

adduser george

For future reference, user management should be done with adduser and deluser instead of useradd and userdel.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy