Automation · RESTCONF
DELETE
Cheat sheet · https://pcornel.dk/topic.php?topic=5624
Answer
RESTCONF DELETE removes the configuration resource at the given URI, such as a loopback interface, returning 204 No Content on success.
Remember
- DELETE removes the resource at the URI.
- Success returns 204 No Content.
- A wrong URI can delete more than intended.
First checks
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
Verify in this order
DELETE path → removed
Where it usually breaks
Client payload/auth → HTTP transport → endpoint validation/policy → request accepted → queued/job execution → target mutation → effective state → consumer workload.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5624