Deleting unused templates