1 package DX::Update::RemoveValue;
3 use DX::Utils qw(VALUE_EXISTS);
6 with 'DX::Role::Update';
9 my ($self, $scope) = @_;
10 my @path = my @whole_path = @{$self->target_path};
11 my $target = pop @path;
13 $self->_with_value_at_path(
14 $scope, sub { $_[0]->without_member_at($target) }, @path
16 [ VALUE_EXISTS ,=> @whole_path ],