Submit a formal resignation letter to your appointing authority through the proper channel. Most service rules require a notice period — typically three months — or payment in lieu of notice. Your resignation takes effect only after it is accepted by the competent authority; till then you remain in service. Check your service rules for the exact notice period and procedure before submitting.