Procedure for Termination of Articleship - Leaving CA

I HAVE DECIDED TO DISCONTINUE CA COURSE AS I AM NOT ABLE TO CLEAR MY IPCC SECOND GROUP EVEN AFTER GIVING MANY ATTEMPTS. I HAVE ALREADY COMPLETED 2YEARS AND 3 MONTHS OF TRAINING ON 30/06/2016.
WHAT IS THE FORMALITIES THAT I HAVE TO COMPLETE TO TERMINATE MY ARTICLESHIP.