Handing in your notice can be daunting, but even more important is how you conduct yourself throughout the process. 

This article takes you through a checklist that you could take into account when you are about to have 'that' discussion with your manager. 

Ultimately if you handle yourself with honesty and integrity, whilst continuing to be committed to your current organisation, you will go a long way to resigning gracefully.