Delete User
Use this command to delete a user.
Syntax regular:
DELETE USER [DomainName\]UserId
where:
- DomainName is optional and is the network domain of a Windows-authenticated user.
- UserId is the ID of the user you want to delete.
Syntax example:
DELETE USER JSmith
Creating an ASCII input file
To delete multiple users, specify the parameters for this command in an ASCII file.
Create an ASCII file containing the following information for each user:
[DomainName\]UserId
Syntax (with an ASCII file):
DELETE USER @FileName
where:
-
FileName is an ASCII file containing the data. It can include a complete or a partial folder path in the format C:\...\FileName. If FileName includes spaces, enclose it in double quotation marks; for example:
@"C:\My Documents\My Data.txt"
Syntax example:
MAINTENANCE ON
DELETE USER @users.txt
MAINTENANCE OFF