Using an append fuunction to delete an element delete_func.go