How to Remove a Windows Test Account and User Profile Folder
Question details
The user needs to completely remove a temporary Windows test account and delete its leftover profile folder containing locked files.

- Product
- Windows
- Device & OS
- Windows
- Scenario
- Cleaning up temporary test accounts and leftover system files created during software troubleshooting.
- Observed behavior
- The test account no longer appears in the standard Control Panel, but its profile folder remains in the C:\Users directory and cannot be deleted due to permission errors and locked files.
Ensure you are signed into Windows with an Administrator account and that you have restarted your computer to release any temporary file locks before attempting the deletion.
Delete the User Profile using Advanced System Properties
This is the safest and recommended method to remove a user profile and its associated files when the account is no longer visible in the standard Control Panel.
Deleting a user folder directly from the C:\Users directory can cause registry errors. Using the Advanced System Properties correctly unlinks the profile and removes associated hidden and locked files.
Press the Windows key, type 'Advanced system settings' in the search bar, and press Enter to open the System Properties window.
In the System Properties window, navigate to the 'Advanced' tab. Look for the 'User Profiles' section and click on the 'Settings' button.
A list of profiles stored on the computer will appear. Select the 'Test' or 'Unknown Account' profile you wish to remove, and click the 'Delete' button.
Confirm the deletion prompt. Once finished, restart your Windows computer and navigate to C:\Users to verify that the profile folder has been completely removed.

Take Ownership of the Leftover Folder
Use this method if the system profile has already been deleted but the folder remains in the directory and you are blocked by 'Folder Access Denied' permissions.
Try WPS Office for a Hassle-Free Document Experience
If you frequently encounter system errors or complex account troubleshooting while using Microsoft 365, consider switching to WPS Office. It provides a lightweight, stable, and highly compatible suite for all your document needs without complex system account setups.
- 1. Download the Installer: Visit the official WPS Office website and click the Free Download button.
- 2. Install WPS Office: Run the downloaded setup file and follow the straightforward installation prompts.
- 3. Open Your Documents: Launch WPS Office to immediately open and edit your existing Microsoft Office files without formatting loss.

Frequently Asked Questions
Why can't I delete a user folder directly from C:\Users?
User profile folders contain hidden system files and registry hives (such as NTUSER.DAT) that are often locked by active Windows background processes. Deleting the folder directly triggers a 'files in use' or permission error.
How do I remove a standard user account from the Control Panel?
Open the Control Panel, go to 'User Accounts', select 'Manage another account', click on the account you wish to remove, and select 'Delete the account'. You will be given the option to keep or delete the account's files.
What happens if I force-delete a user profile folder using command prompt?
Force-deleting a profile folder without properly unlinking it from Windows can leave orphaned registry entries. This may cause system errors or cause Windows to create temporary profiles (e.g., TEMP.000) if someone tries to log into that account again.
Is it safe to delete the Default or Public user folders?
No, you should never delete the 'Default' or 'Public' folders located in the C:\Users directory. These are essential core system folders used by Windows to build new user accounts and share files between existing users.




