remove item from template components on delete