You should be able to use (no pun intended)
Code:

USE X: /DELETE /PERSISTENT


Alternatively, delete the corresponding registry key or use any of the MapDrive UDFs, which take care of server changes automatically. See for example MapDrive() - Maps a UNC name to a specific driveletter
_________________________
There are two types of vessels, submarines and targets.