The below command :
net user Test /delete
only delete the user which is not enough.
Easy:
rd /s /q "C:\Users\UserName"
Please remember to mark my reply by clicking "Did this solve your problem?".
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have windows 10 machines with several users on it.
I want to delete these user via CMD or Powershell with all their folders (desktop, download, ........etc)
The below command :
net user Test /delete
only delete the user which is not enough.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
The below command :
net user Test /delete
only delete the user which is not enough.
Easy:
rd /s /q "C:\Users\UserName"
Please remember to mark my reply by clicking "Did this solve your problem?".
Thank you so much for your swift reply and helpful answer.
I hope you do not mind to explain what are these stands for
rd /s /q
I hope you do not mind to explain what are these stands for
rd /s /q
rd = Remove directory
/s = Recursive delete
/s = Silent mode, i.e. not asking for confirmation
You could see all this by typing this command at the Command Prompt:
rd /?
Hi, I'm Elise, an independent advisor and I'd be happy to help with your issue.
You would also need to delete the user folder, you can use a powershell command like:
Remove-Item 'C:\User\Username' -Recurse
Please let me know if you need any further assistance.
Kind Regards,
Elise