Here is how to do this:
$exattr=@(
'ExtensionAttribute1',
'ExtensionAttribute2',
'ExtensionAttribute3',
'ExtensionAttribute4',
'ExtensionAttribute5',
'ExtensionAttribute6',
'ExtensionAttribute7',
'ExtensionAttribute8',
'ExtensionAttribute9',
'ExtensionAttribute10',
'ExtensionAttribute11',
'ExtensionAttribute12'
'ExtensionAttribute13'
)
Set-AdUser testuser01 -clear $exattr
With SP2 on 2010 we get 45 extension attributes. They are not named msExch in AD. They are just ExtensionArttribute1-45
You can always clear them even if they are not set.
The following can only be cleared like this:
get-mailbox | set-mailbox -ExtensionCustomAttribute1 $null
There are 5 of these and all can take multiple values. They can only be managed via Exchange CmdLets.