Delete removes data from the given resource, adding the given params to the request.
(ctx context.Context, resource string, params map[string]any)
| 54 | |
| 55 | // Delete removes data from the given resource, adding the given params to the request. |
| 56 | func (c *PersonalizationClient) Delete(ctx context.Context, resource string, params map[string]any) (*PersonalizationResponse, error) { |
| 57 | if resource == "" { |
| 58 | return nil, errors.New("missing resource") |
| 59 | } |
| 60 | endpoint := c.client.makeEndpoint("%s/", resource) |
| 61 | for k, v := range params { |
| 62 | endpoint.addQueryParam(makeRequestOption(k, v)) |
| 63 | } |
| 64 | return c.decode(c.client.delete(ctx, endpoint, nil, c.client.authenticator.personalizationAuth)) |
| 65 | } |
nothing calls this directly
no test coverage detected