Delete Configuration

Use
action=delete
to delete an object at a specified location in the configuration. Use the
xpath
parameter to specify the location of the object to be deleted.
  • Delete a rule named rule1 in the security policy:
    curl -X GET "https://<firewall>/api/?key=apikey&type=config&action=delete&xpath=/config/devices/entry/vsys/entry/rulebase/security/rules/entry[@name='rule1']"
    Code copied to clipboard
    Unable to copy due to lack of browser support.
  • Delete a single member object in a group, use the object name in the xpath as
    member[text()='name']
    . For example, to delete a static address object named abc in an address group named test, use the following xpath:
    curl -X GET "https://<firewall>/api/?key=apikey&type=config&action=delete&xpath=/config/devices/entry/vsys/entry[@name='vsys1']/address-group/entry[@name='test']/static/member[text()='abc']"
    Code copied to clipboard
    Unable to copy due to lack of browser support.

Recommended For You