Add template delete functionality