: Delete Configuration
Focus
Focus

Delete Configuration

Table of Contents
End-of-Life (EoL)

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 POST 'https://firewall/api?type=config&action=delete&xpath=/config/devices/entry/vsys/entry/rulebase/security/rules/entry[@name='rule1']"
  • 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 POST 'https://firewall/api?type=config&action=delete&xpath=/config/devices/entry/vsys/entry[@name='vsys1']/address-group/entry[@name='test']/static/member[text()='abc']"