diff --git a/v2:-Documentation.md b/v2:-Documentation.md index 2ef8c4b..e859c52 100644 --- a/v2:-Documentation.md +++ b/v2:-Documentation.md @@ -19,7 +19,6 @@ This page describes how to use Caddy 2, which is a work-in-progress on the [v2 b - [reverse-proxy](#reverse-proxy) - [Admin endpoint](#admin-endpoint) - [POST /load](#post-load) - - [POST /unload](#post-unload) - [POST /stop](#post-stop) - [GET /config/[scope]](#get-configscope) - [POST /config/[scope]](#post-configscope) @@ -387,7 +386,15 @@ $ curl -X PUT \ Changes Caddy's configuration at the named scope to the JSON body of the request. DELETE deletes the value at the named scope. -### Example +### Examples + +To unload the entire current configuration: + +```bash +$ curl -X DELETE "http://localhost:2019/config/" +``` + +To stop only one of your HTTP servers: ```bash $ curl -X DELETE "http://localhost:2019/config/apps/http/servers/myserver"