client delete functionality using template