Error Message:

The device is being accessed by an active process.

Explanation:

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.

User Action:

Be sure the drive you are trying to delete is not the current drive in any of your sessions.