Use this when removing configuration through RESTCONF.
DELETE · RESTCONF
1. DELETE removes the target node.
2. Precise paths only.
3. 404 if absent — treat as done.
4. Back up before deleting.
5. Verify.
DELETE path → removed
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
The negative fixture should deliberately exercise risks such as wrong resource URI, PUT/PATCH replacement semantics confusion, stale conditional requests, content-type mismatch and treating 2xx as state convergence, choosing the cases most relevant to resource existence, DELETE semantics, status/error handling, conditional requests and independent confirmation that the resource is absent.
Step 2 Common mistakes Narrow the fault
- Deleting a parent path by mistake.
- Expecting 404 on retry to mean failure (it is already gone).
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- DELETE removes the resource at the URI.
- Success returns 204 No Content.
- A wrong URI can delete more than intended.
curl -s --cacert ca.pem -u <u>:<p> -X DELETE https://<dev>/restconf/data/<path>— delete- 404 if absent — idempotent handling
- Confirm path before delete — safety
ReferenceWhy it matters1 section · depth on demand
What it is
DELETE removes the target resource; deleting a container removes everything below it.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
A RESTCONF DELETE removes the target resource and everything under it. It returns 204 on success and 404 if the resource does not exist.
curl -s -u admin:pass -X DELETE \
https://10.0.0.1/restconf/data/ietf-interfaces:interfaces/interface=Loopback100
Because a DELETE on a parent removes all children, double-check the URL — a missing key turns "delete one interface" into "delete the interfaces container". For idempotent automation, treat 404 on delete as "already absent" rather than an error.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in RESTCONF > DELETE. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc8040 · confidence 94%Deep reference
Healthy vs suspicious evidence
Output interpretation
For resource existence, DELETE semantics, status/error handling, conditional requests and independent confirmation that the resource is absent, prefer typed fields and stable IDs over human presentation text.