MCPcopy Create free account
hub / github.com/GetStream/stream-go2 / Delete

Method Delete

users.go:51–55  ·  view source on GitHub ↗

Delete deletes a user having the given id.

(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

49
50// Delete deletes a user having the given id.
51func (c *UsersClient) Delete(ctx context.Context, id string) (*BaseResponse, error) {
52 endpoint := c.client.makeEndpoint("user/%s/", id)
53
54 return decode(c.client.delete(ctx, endpoint, nil, c.client.authenticator.usersAuth))
55}
56
57// CreateReference returns a new reference string in the form SU:<id>.
58func (c *UsersClient) CreateReference(id string) string {

Callers 5

TestDeleteReactionFunction · 0.45
TestDeleteUserFunction · 0.45

Calls 3

decodeFunction · 0.85
makeEndpointMethod · 0.80
deleteMethod · 0.80

Tested by 5

TestDeleteReactionFunction · 0.36
TestDeleteUserFunction · 0.36