One of your rudest students asks you for a letter of recommendation. They passed all the tests but did no homework and handed in a major assignment seven months late. They were also pretty terrible behavior wise just about every day.
If they could never see what you wrote:
would you write a negative letter?
would you decline?
Or would you just write something generic anyway?