How to unmap a network drive

In a batch file, this command removes the mapping for drive X: without prompting the user for confirmation: (NOTE: this is a DOS command not a KIX command)

net use x: /delete /y

other net use commands:

net use [DEVICE [/HOME[{PASSWORD | *}] [/DELETE:{yes | no}]]

net use [/PERSISTENT:{yes | no}]
DEVICE : Assigns a name to connect to the resource or specifies the device to be disconnected. There are two kinds of device names: disk drives (that is, D: through Z:) and printers (that is, LPT1: through LPT3:). Type an asterisk (*) instead of a specific device name to assign the next available device name.

\\COMPUTER\SHARE : Specifies the name of the server and the shared resource. If COMPUTER contains spaces, use quotation marks around the entire computer name from the double backslash (\\) to the end of the computer name (for example, "\\Computer Name\Share Name"). The computer name can be from 1 to 15 characters long.

\VOL : Specifies a NetWare volume on the server. You must have Client Service for NetWare installed and running to connect to NetWare servers.

PASSWORD : Specifies the password needed to access the shared resource. Type an asterisk (*) to produce a prompt for the password. The password is not displayed when you type it at the password prompt.

/USER : Specifies a different user name with which the connection is made.

DOMAIN : Specifies another domain. If you omit DOMAIN, net use uses the current logged on domain.

USER : Specifies the user name with which to log on.

DOTTEDDOMAIN : Specifies the fully-qualified domain name for the domain where the user account exists.

/SAVECRED : Stores the provided credentials for reuse.

/SMARTCARD : Specifies the network connection is to use the credentials on a smart card. If multiple smart cards are available, you are asked to specify the credential.

/DELETE : Cancels the specified network connection. If you specify the connection with an asterisk (*), all network connections are canceled.

/PERSISTENT:{yes | no} : Controls the use of persistent network connections. The default is the setting used last. Deviceless connections are not persistent. Yes saves all connections as they are made, and restores them at next logon. No does not save the connection being made or subsequent connections. Existing connections are restored at the next logon. Use /DELETE to remove persistent connections.

/HOME : Connects a user to the home directory.

net help command : Displays help for the specified net command.

KIX Syntax:
USE < * | "device" | "resource"> /DELETE [/PERSISTENT]
USE ["device"] <"resource"> [/USER:user] [/PASSWORD:password] [/PERSISTENT]