add delete Template functional