Introduce void deleteTarget(int target). When the function is called, the node with target value will be deleted. Or it will do nothing if no front is available.