[Important Security Notice] Fake Qfinder Pro Websites Detected. Learn more >

How to Delete Home Directories of Removed Users?


Last modified date: 2026-02-12

Applicable Products

  • All NAS running QTS or QuTS hero

Scenario

After removing the user, the home directory of removed users still exists. Even disabling the home folder for all users function, it doesn't help.


Solution

Please follow steps below.

  1. Use an SSH client to connect to the NAS using NAS administrator's account: (How do I access my QNAP NAS using SSH
  2. Switch to the homesfolder:
    cd /share/homes
  3. List existing home directories and confirm the folder name:
    ls -la
  4. Force delete the specified user’s home directory:
    sudo rm -rf ${UserName}

Warning: The rm -rf command permanently deletes files and folders without recovery. Make sure that ${UserName} exactly matches the orphaned home directory and that you have backed up any important data before running this command.



Was this article helpful?

Thank you for your feedback.

Please tell us how this article can be improved:

If you want to provide additional feedback, please include it below.

Choose specification

      Show more Less
      Choose Your Country or Region
      open menu
      back to top