Delete template from the middle