Delete a gist. GitHub API docs: https://docs.github.com/rest/gists/gists?apiVersion=2022-11-28#delete-a-gist meta:operation DELETE /gists/{gist_id}
(ctx context.Context, id string)
| 294 | // |
| 295 | //meta:operation DELETE /gists/{gist_id} |
| 296 | func (s *GistsService) Delete(ctx context.Context, id string) (*Response, error) { |
| 297 | u := fmt.Sprintf("gists/%v", id) |
| 298 | req, err := s.client.NewRequest(ctx, "DELETE", u, nil) |
| 299 | if err != nil { |
| 300 | return nil, err |
| 301 | } |
| 302 | |
| 303 | return s.client.Do(req, nil) |
| 304 | } |
| 305 | |
| 306 | // Star a gist on behalf of authenticated user. |
| 307 | // |