(w http.ResponseWriter, r *http.Request)
| 120 | } |
| 121 | |
| 122 | func (a *API) DeleteInstance(w http.ResponseWriter, r *http.Request) error { |
| 123 | i := getInstance(r.Context()) |
| 124 | if err := models.DeleteInstance(a.db, i); err != nil { |
| 125 | return internalServerError("Database error deleting instance").WithInternalError(err) |
| 126 | } |
| 127 | |
| 128 | w.WriteHeader(http.StatusNoContent) |
| 129 | return nil |
| 130 | } |
nothing calls this directly
no test coverage detected