NETCONF <delete-config> Operation Function
Short answer
A <delete-config> wipes the target datastore by removing its entire configuration.
Question
Key Takeaways
The NETCONF <delete-config> RPC is designed to wipe a target datastore by removing its entire configuration. This distinguishes it from <edit-config> which modifies settings, <get-config> which retrieves data, and <lock> which controls access.
Expert Analysis
delete-config removes the entire configuration from a target datastore.
The NETCONF protocol, defined in RFC 6241, provides a standardized mechanism for installing, manipulating, and removing configurations on network devices. Understanding the specific semantics of its remote procedure calls (RPCs) is critical for accurate device management and automation scripting. The question asks specifically about the function of the <delete-config> operation. To answer this correctly, one must distinguish between operations that modify existing data, retrieve data, or alter the state of access to data, versus those that remove data entirely.
Option A states that the operation "Wipes a datastore." This is the correct interpretation of the <delete-config> RPC. When a NETCONF client sends a <delete-config> request targeting a specific configuration datastore (such as running, candidate, or startup), the server is instructed to remove all content from that datastore. Effectively, this returns the datastore to an empty state, devoid of any configuration nodes. In the context of network automation, this is equivalent to wiping the configuration. It is important to note that while it clears the configuration, it does not necessarily restart the device; the device continues to operate with whatever default or factory-state behavior is implied by having no active configuration, which may result in loss of connectivity or functionality depending on the platform.
Option B, "Modifies config," describes the <edit-config> operation. <edit-config> is used to make incremental changes to the configuration, such as adding new interfaces, changing IP addresses, or modifying routing protocols. It allows for targeted updates without affecting unrelated configuration elements. Since <delete-config> removes everything rather than making selective changes, Option B is incorrect.
Option C, "Retrieves config," describes the <get-config> operation. This RPC is used to query the current state of a configuration datastore. It allows a management system to read the configuration but never alters it. Because <delete-config> is a write/delete operation that destroys data rather than reading it, Option C is incorrect.
Option D, "Locks config," describes the <lock> operation. Network devices often support configuration locking to prevent concurrent edits that could lead to conflicts or inconsistent states. The <lock> RPC prevents other sessions from modifying the specified datastore until it is explicitly unlocked using the <unlock> RPC. While locking is a crucial part of safe configuration management workflows, it does not remove or wipe the configuration. Therefore, Option D is incorrect.
A key distinction in NETCONF operations is the scope of impact. <edit-config> operates at the node level, allowing fine-grained adjustments. <delete-config> operates at the datastore level, performing a total reset of that specific storage area. This makes <delete-config> a powerful and potentially destructive tool, typically used during initial provisioning (Day 0) or when reverting to a clean slate is required. Automation scripts must handle this operation with caution, ensuring that the correct datastore is targeted and that necessary backups are taken beforehand. The reference explanation confirms that the action is removal from the target datastore, aligning perfectly with the concept of wiping the datastore.
In summary, the decision rests on mapping the RPC name to its defined behavior in the RFC. Delete implies removal. Config implies the configuration data. Target datastore implies the specific storage location. Thus, deleting the configuration from the datastore is synonymous with wiping the datastore. All other options describe fundamentally different RPCs: modification (<edit-config>), retrieval (<get-config>), and access control (<lock>).
Official Reference
https://datatracker.ietf.org/doc/html/rfc6241
This link opens the official vendor documentation in a new tab.
Exam Strategy
When answering NETCONF protocol questions, map the verb in the RPC name directly to its action: 'get' means read/retrieve, 'edit' means modify/update, 'copy' means duplicate/move, and 'delete' means remove/wipe. Always check if the operation targets the running, candidate, or startup datastore, as 'delete' affects the entire contents of that specific store. For lock/unlock questions, remember they manage concurrency, not data content.
Related Analysis
Practice All 300-435 Questions
Access 150 questions with complete answers and detailed explanations.
View Full 300-435 Practice Test →