MCPcopy Create free account
hub / github.com/netlify/gotrue / DeleteInstance

Method DeleteInstance

api/instance.go:122–130  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

120}
121
122func (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}

Callers

nothing calls this directly

Calls 5

DeleteInstanceFunction · 0.92
getInstanceFunction · 0.85
internalServerErrorFunction · 0.85
WriteHeaderMethod · 0.80
WithInternalErrorMethod · 0.45

Tested by

no test coverage detected