MCPcopy Create free account
hub / github.com/google/go-github / Delete

Method Delete

github/gists.go:296–304  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

294//
295//meta:operation DELETE /gists/{gist_id}
296func (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//

Calls 2

NewRequestMethod · 0.80
DoMethod · 0.45