Template blocks cascade remove when delete a template