In diskpart under an elevated command prompt it is the "assign" command.
For boot USB flash drives I deliberately leave the letter floating by typing
>assign
with no letter nominated.