J.K. Rowling apologized for killing off Dobby in Harry Potter and the Deathly Hallows. She shouldn't. The house-elf's character came to his logical conclusion. It was the right time for him to meet his end.
J.K. Rowling regrets killing off this 'Harry Potter' character the most
Dobby, Harry Potter Wiki
Harry Potter: J.K. Rowling Apologizes For Killing Off Dobby
J.K. Rowling's Apology for Killing Off Dobby Reactions
A Decade Later, J.K. Rowling Apologizes for Killing Snape - and Reignites Old Wounds - TheWrap
JK Rowling apologises for Dobby's death in Harry Potter And The Deathly Hallows, Ents & Arts News
Book Review: Harry Potter and the Chamber of Secrets, by J.K. Rowling – Supposedly Fun
The Harry Potter characters J.K. Rowling nearly killed – and the ones she's sorry she did
J.K. Rowling Apologised For Killing Dobby, But I Don't Think I'm Ready To Forgive Her
J.K. Rowling apologizes on the Battle of Hogwarts anniversary