Delete User Account Using Command Line
In this short post we will see the steps on how to delete user account using command line. To delete a user account you can use the control panel and navigate to user accounts and delete the account or you can also delete user account using command line. Most of the users tend to do it using control panel. You can make use of net user command to create and modify user accounts on computers.
To delete user account using command line you must run Command Prompt as administrator and execute the below command. Please note that the below commands will work on Windows XP, Windows 7, Windows 8.1 and also on all Server editions. In case you see an error “system error 5 has occurred Access is denied” then it means that the user account that you are logged in with does not have administrator privileges on that computer. You must login with an user account that has administrative privileges on that computer.
The syntax for deleting a user account is :

net user username /delete
Where
net user – Command to create and modify user accounts on computers.
username – This is the name of the user account.
/delete – Removes a user account from the user accounts database.
So if you have a user named Jason and if you want to delete user account using command line then your command would be net user Jason /delete.
Still Need Help?
If you need further assistance on the above article or want to discuss other technical issues, check out some of these options.