Delete template folder and update index