Dying on a Hardcore Realm with Mail will prevent you from deleting or transferring your character.
Blizzard has stated that they are aware of the issue and are working on a solution, but it might take some time to resolve.
We have a bug on Hardcore realms where some characters are not able to be deleted or transfer off the realm after their unfortunate demise, ostensibly due to mail.We’ve been working on it, and we’ve come to the conclusion that it might take some time to resolve.Thank you for your patience..
Read more on wowhead.com