How to delete user account with its folder via CMD or Powershell

Anonymous
2020-10-20T07:03:04+00:00

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.

Windows for home | Windows 10 | Files, folders, and storage

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.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Anonymous
    2020-10-20T07:34:23+00:00

    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?".

    50 people found this answer helpful.
    0 comments No comments

9 additional answers

Sort by: Most helpful
  1. Anonymous
    2020-10-20T11:33:49+00:00

    No problem,

    Kind Regards,

    Elise

    0 comments No comments