Question about "when" usage

I think your question is similar to A question about the "when" merge usage

As @cohult described:

As an edit-config is applied as one transaction (not per operation), a NETCONF server will process that transaction and after that processing, if any node’s “when” expression becomes false, then the node in the data tree with the “when” expression is deleted by the server.