Delete deletes a user having the given id.
(ctx context.Context, id string)
| 49 | |
| 50 | // Delete deletes a user having the given id. |
| 51 | func (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>. |
| 58 | func (c *UsersClient) CreateReference(id string) string { |