MCPcopy Index your code
hub / github.com/coder/coder / DeleteUserSkill

Method DeleteUserSkill

codersdk/userskills.go:110–120  ·  view source on GitHub ↗

DeleteUserSkill deletes a user skill by name.

(ctx context.Context, user string, name string)

Source from the content-addressed store, hash-verified

108
109// DeleteUserSkill deletes a user skill by name.
110func (c *ExperimentalClient) DeleteUserSkill(ctx context.Context, user string, name string) error {
111 res, err := c.Request(ctx, http.MethodDelete, userSkillPath(user, name), nil)
112 if err != nil {
113 return err
114 }
115 defer res.Body.Close()
116 if res.StatusCode != http.StatusNoContent {
117 return ReadBodyAsError(res)
118 }
119 return nil
120}

Callers 4

TestUserSkillsCRUDFunction · 0.95
TestUserSkillAuditFunction · 0.95

Calls 4

ReadBodyAsErrorFunction · 0.85
userSkillPathFunction · 0.70
CloseMethod · 0.65
RequestMethod · 0.45

Tested by 4

TestUserSkillsCRUDFunction · 0.76
TestUserSkillAuditFunction · 0.76