I mean...that's notanything hard to do. Just dont do any "see you later"s, you know?
I mean sure you can do a few fake outs to trip the readers up. But a real surprise character death is just sudden and unexpected. When you think, "they are a main character, they wont die" and then they trigger...