Why Do Authors Kill Off Their Characters?

“JK Rowling has confessed that halfway through the Potteriad, at a low point (it can’t, surely, have been money worries) she was tempted to rub out Ron Weasley. Her motive? ‘Sheer spite’, she says.” (She’s hardly the only one, either.)