Delete Configuration - Palo Alto Networks

EN Location PAN-OS® and Panorama™ API Guide : Delete Configuration Updated on Wed Aug 21 13:48:19 PDT 2024 Focus Download PDF End-of-Life (EoL) Filter icon Filter Version 9.1 (EoL)
  • 11.1 & Later
  • 11.0 (EoL)
  • 10.2
  • 10.1
  • 10.0 (EoL)
  • 9.1 (EoL)
Expand all | Collapse all
  • About the PAN-OS API
    • PAN-OS XML API Components
    • Structure of a PAN-OS XML API Request
      • API Authentication and Security
      • XML and XPath
      • XPath Node Selection
  • Get Started with the PAN-OS XML API
    • Enable API Access
    • Get Your API Key
    • Make Your First API Call
    • Authenticate Your API Requests
    • Explore the API
      • Use the API Browser
      • Use the CLI to Find XML API Syntax
      • Use the Web Interface to Find XML API Syntax
    • PAN-OS XML API Error Codes
  • PAN-OS XML API Use Cases
    • Upgrade a Firewall to the Latest PAN-OS Version (API)
    • Show and Manage GlobalProtect Users (API)
    • Query a Firewall from Panorama (API)
    • Upgrade PAN-OS on Multiple HA Firewalls through Panorama (API)
    • Automatically Check for and Install Content Updates (API)
    • Enforce Policy using External Dynamic Lists and AutoFocus Artifacts (API)
    • Configure SAML 2.0 Authentication (API)
  • PAN-OS XML API Request Types
    • PAN-OS XML API Request Types and Actions
      • Request Types
      • Configuration Actions
        • Actions for Modifying a Configuration
        • Actions for Reading a Configuration
    • Asynchronous and Synchronous Requests to the PAN-OS XML API
    • Configuration (API)
      • Get Active Configuration
        • Use XPath to Get Active Configuration
        • Use XPath to Get ARP Information
      • Get Candidate Configuration
      • Set Configuration
      • Edit Configuration
      • Delete Configuration
      • Rename Configuration
      • Clone Configuration
      • Move Configuration
      • Override Configuration
      • Multi-Move or Multi-Clone Configuration
      • View Configuration Node Values for XPath
    • Commit Configuration (API)
      • Commit
      • Commit-All
    • Run Operational Mode Commands (API)
    • Get Reports (API)
      • Dynamic Reports
      • Predefined Reports
      • Custom Reports
    • Export Files (API)
      • Export Packet Captures
        • Export Application PCAPS
        • Export Threat, Filter, and Data Filtering PCAPs
      • Export Certificates and Keys
      • Export Technical Support Data
    • Import Files (API)
      • Importing Basics
      • Import Files
    • Retrieve Logs (API)
      • API Log Retrieval Parameters
      • Example: Use the API to Retrieve Traffic Logs
    • Apply User-ID Mapping and Populate Dynamic Groups (API)
    • Get Version Info (API)
  • Get Started with the PAN-OS REST API
    • PAN-OS REST API
    • Access the PAN-OS REST API
    • Resource Methods and Query Parameters (REST API)
    • PAN-OS REST API Request and Response Structure
    • PAN-OS REST API Error Codes
    • Work With Objects (REST API)
    • Create a Security Policy Rule (REST API)
    • Work with Policy Rules on Panorama (REST API)
    • Create a Tag (REST API)
    • Configure a Security Zone (REST API)
    • Configure an SD-WAN Interface (REST API)
    • Create an SD-WAN Policy Pre Rule (REST API)
Updated on Wed Aug 21 13:48:19 PDT 2024 Focus
  1. Home
  2. PAN-OS
  3. PAN-OS® and Panorama™ API Guide
  4. PAN-OS XML API Request Types
  5. Configuration (API)
  6. Delete Configuration
Download PDF PAN-OS® and Panorama™ API Guide

Delete Configuration

Table of Contents Filter icon Filter Version 9.1 (EoL)
  • 11.1 & Later
  • 11.0 (EoL)
  • 10.2
  • 10.1
  • 10.0 (EoL)
  • 9.1 (EoL)
Expand all | Collapse all
  • About the PAN-OS API
    • PAN-OS XML API Components
    • Structure of a PAN-OS XML API Request
      • API Authentication and Security
      • XML and XPath
      • XPath Node Selection
  • Get Started with the PAN-OS XML API
    • Enable API Access
    • Get Your API Key
    • Make Your First API Call
    • Authenticate Your API Requests
    • Explore the API
      • Use the API Browser
      • Use the CLI to Find XML API Syntax
      • Use the Web Interface to Find XML API Syntax
    • PAN-OS XML API Error Codes
  • PAN-OS XML API Use Cases
    • Upgrade a Firewall to the Latest PAN-OS Version (API)
    • Show and Manage GlobalProtect Users (API)
    • Query a Firewall from Panorama (API)
    • Upgrade PAN-OS on Multiple HA Firewalls through Panorama (API)
    • Automatically Check for and Install Content Updates (API)
    • Enforce Policy using External Dynamic Lists and AutoFocus Artifacts (API)
    • Configure SAML 2.0 Authentication (API)
  • PAN-OS XML API Request Types
    • PAN-OS XML API Request Types and Actions
      • Request Types
      • Configuration Actions
        • Actions for Modifying a Configuration
        • Actions for Reading a Configuration
    • Asynchronous and Synchronous Requests to the PAN-OS XML API
    • Configuration (API)
      • Get Active Configuration
        • Use XPath to Get Active Configuration
        • Use XPath to Get ARP Information
      • Get Candidate Configuration
      • Set Configuration
      • Edit Configuration
      • Delete Configuration
      • Rename Configuration
      • Clone Configuration
      • Move Configuration
      • Override Configuration
      • Multi-Move or Multi-Clone Configuration
      • View Configuration Node Values for XPath
    • Commit Configuration (API)
      • Commit
      • Commit-All
    • Run Operational Mode Commands (API)
    • Get Reports (API)
      • Dynamic Reports
      • Predefined Reports
      • Custom Reports
    • Export Files (API)
      • Export Packet Captures
        • Export Application PCAPS
        • Export Threat, Filter, and Data Filtering PCAPs
      • Export Certificates and Keys
      • Export Technical Support Data
    • Import Files (API)
      • Importing Basics
      • Import Files
    • Retrieve Logs (API)
      • API Log Retrieval Parameters
      • Example: Use the API to Retrieve Traffic Logs
    • Apply User-ID Mapping and Populate Dynamic Groups (API)
    • Get Version Info (API)
  • Get Started with the PAN-OS REST API
    • PAN-OS REST API
    • Access the PAN-OS REST API
    • Resource Methods and Query Parameters (REST API)
    • PAN-OS REST API Request and Response Structure
    • PAN-OS REST API Error Codes
    • Work With Objects (REST API)
    • Create a Security Policy Rule (REST API)
    • Work with Policy Rules on Panorama (REST API)
    • Create a Tag (REST API)
    • Configure a Security Zone (REST API)
    • Configure an SD-WAN Interface (REST API)
    • Create an SD-WAN Policy Pre Rule (REST API)
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']"
Previous Edit Configuration Next Rename Configuration Techdocs Logo

© 2026 Palo Alto Networks, Inc. All rights reserved.

Từ khóa » Xóa Xml