I can comment on editting. The delete action was answered in your other post.
If you want to edit a member object, then you need to reference the original member object with member[text()='<value>'] and then use the element parameter for the modified member object value: element=<xml code>
You were pretty close.
For example using curl if the original member is xyz\12345 6 and you want to change it to xya\10203040
$ curl -k "https://<fw ip>/api/?type=config&action=edit&xpath=/config/devices/entry\[@name='localhost.localdomain'\]/vsys/entry\[@name='<vsys name>'\]/rulebase/security/rules/entry\[@name='<rulename>'\]/source-user/member\[text()='xyz\12345 6'\]&element=<member>xya\10203040</member>&key=<API-KEY>" <response status="success" code="20"><msg>command succeeded</msg></response>
... View more
To delete a single member object in a configuration use type=config&action=delete. I don't think you can edit a member to blank. Then use the object name in the xpath as member[text()=’name’]. For example, to delete a source-user object named 'acme\bob' in a group of source users, use the below xpath:
An example using curl.
curl -k "https://<source_ip>/api/?type=config&action=delete&xpath=/config/devices/entry\[@name='localhost.localdomain'\]/vsys/entry\[@name='<vsys name>'\]/rulebase/security/rules/entry\[@name='<rule name>'\]/source-user/member\[text()='acme\bob'\]&key=<API-KEY>"
If you want to use a scripting language like python, use pan-python. https://github.com/kevinsteves/pan-python
... View more