MCPcopy Index your code
hub / github.com/cortexlabs/cortex / Delete

Function Delete

pkg/operator/endpoints/delete.go:26–36  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

24)
25
26func Delete(w http.ResponseWriter, r *http.Request) {
27 apiName := mux.Vars(r)["apiName"]
28 keepCache := getOptionalBoolQParam("keepCache", false, r)
29
30 response, err := resources.DeleteAPI(apiName, keepCache)
31 if err != nil {
32 respondError(w, r, err)
33 return
34 }
35 respondJSON(w, r, response)
36}

Callers

nothing calls this directly

Calls 4

DeleteAPIFunction · 0.92
getOptionalBoolQParamFunction · 0.85
respondErrorFunction · 0.85
respondJSONFunction · 0.70

Tested by

no test coverage detected