The device is being accessed by an active process.
The drive letter you specified is the current drive of a session. You tried to delete a drive redirection (x:) while it is in use, possibly as your current drive.
Be sure the drive you are trying to delete is not the current drive in any of your sessions.