People who stop using a shared computer can leave behind a login and a home folder full of personal files. In Ubuntu Desktop 26.04 LTS, GNOME Settings lets an administrator remove a local account from this computer and choose what happens to its home folder.

Keeping the home folder leaves its contents on disk under the account's old numeric user ID. An administrator can recover the files later.

Deleting the home folder also removes the documents and application settings stored there. Any files you need afterwards should have a backup outside that folder before you remove the account.

Start on the Ubuntu desktop with Settings closed and a separate administrator account signed in. Have the administrator password ready. The user you want to remove needs to be signed out and listed on the login screen. Know their display name and the name of their folder under /home. Save open work before the logout check.

Steps to delete a user in Ubuntu (GNOME):

  1. Open the system menu from the network, sound, or battery icons at the top right.
  2. Click the Settings gear in the system menu.
  3. Scroll down the Settings sidebar to System if its row is out of view.
  4. Select System in the sidebar if another panel is open.
  5. Select Users in the System panel.
  6. Click Unlock… in the Users panel.
  7. Enter your administrator password in the Authentication Required dialog.
  8. Click Authenticate.
  9. Select the account you want to remove under Other Users.

    The row shows the account's display name and avatar. The example shows Taylor Reed with a TR initials avatar.

  10. Scroll down in the user's settings if you need to bring Remove User… fully into view.
  11. Click Remove User… for the selected account.
  12. Set Delete Files and Settings to match your choice for the user's home folder.

    On permanently deletes the home folder and its contents. Off keeps the folder on disk. Both settings remove the account. The confirmation identifies the account by display name alone. If two accounts share that name or you cannot tell which row belongs to the intended account, stop before confirming.

  13. Click Remove when the dialog names the account you chose.

    Settings returns to the Users panel when the removal finishes.

  14. Confirm that the removed account no longer appears in Users.

    The Other Users section disappears when there are no other accounts to list.

  15. Open Files from the Ubuntu dock.
  16. Press Ctrl+L in Files to edit the location.
  17. Replace the selected location with /home.
  18. Press Enter to open /home.
  19. Check that the removed user's folder under /home matches your choice.

    With Delete Files and Settings on, the folder is absent. With the switch off, the folder is still listed. The example removed the folder named taylor.

  20. Open the system menu from the icons at the top right.
  21. Click the power icon in the system menu.
  22. Select Log Out… in the power menu.
  23. Click Log Out in the confirmation dialog.
  24. Confirm that the removed user is absent from the account list on the login screen.

    The administrator account is still available for signing back in.

Share this guide