delete function create node