How do you delete the Apple ID of a dead person?
As far as I know the only way to remove an iCloud password is to contact Apple with the relevant documentation.

This link has some contact details

https://support.apple.com/en-au/HT204169