Added category_delete function to template.