Use the below commands to delete a user from command line.
To delete a user on a standalone machine:
net user username /DELETE
To delete a user from domain: net user username /DELETE /DOMAINNote that we do not need to specify the domain name here.
Related Posts: