This diplomatic and polite resignation letter can be used as a neutral goodbye to a bad superior.
Dear {Recipient},
I hereby tender my resignation at {Company Name}. Thank you for allowing me the opportunity to work at such a dynamic company.
I have accepted a job elsewhere that is more suited to my talents and long-term career goals. As per company policy, my last day of work will be {date}. I will work hard to ensure that my responsibilities are smoothly transferred to my replacement.
Sincerely,
{Sender}