Restrict delete Xpath operation in CLI config mode other than aaa file

so for my understanding on aaa file, only defined xpath only can add constrain with CRUD.
for my case, its could not achieve using aaa file.

I want to delete restriction on my xpath, with some dependency.
i.e, at least one PR has to be present. Only one PR has possible to delete. if try to delete another PR, then it should restrict.
eg: my container,
container slot{
list PR1{
}
list PR2{
}
list cam{
}
}

kindly share your suggestion.

Is the following XPath statement what you are looking for:

  container slot {
    must "(count(PR1/name1) >= 1) or (count(PR2/name2) >= 1)" {
      error-message "At least one instance of PR has to exist.";
    }
    list PR1 {
      key name1;
        leaf name1 {
          type string;
        }
    }
    list PR2 {
      key name2;
      leaf name2 {
        type string;
      }
    }
  }