55

Is there a way I can remove a gist on GitHub? Created a gist earlier, but don't really want it there anymore.

Svish
  • 152,914
  • 173
  • 462
  • 620
  • 7
    Why is this post downvoted and closed as off topic, while http://stackoverflow.com/questions/5912274/how-to-delete-a-specific-revision-of-a-github-gist is not? – Svish Aug 21 '11 at 17:25
  • 17
    I vote for reopen. On-topic, as per the FAQ: 'software tools commonly used by programmers'. Just sayin' :) – Thomas Bratt Oct 29 '11 at 14:54
  • 7
    This post is the #1 hit if you google "github delete gist" – Peter Hanley Nov 17 '12 at 18:34
  • 1
    The delete button is not that easy to find, it doesn't appear on all display styles of the gist, that's why this is a top google hit and has 27 upvotes despite some downvotes! – PatrickT Dec 05 '13 at 01:01
  • Delete ALL gists here: https://github.com/lateplate/gist-cleaner/blob/master/gist_cleaner.rb – P i Nov 07 '15 at 11:38

2 Answers2

82

Currently:

There's a "delete" button at the top of each gist now:

enter image description here

Previously...

Previously there was "delete this gist" link at the bottom of the gist's page, as below - thanks to Daniel Smith for pointing out in the comments below that this has been changed.

enter image description here

Community
  • 1
  • 1
Mark Longair
  • 446,582
  • 72
  • 411
  • 327
  • Yup, just found it and posted an answer about my dumbness, haha. But you have a screenshot, so will accept this one! – Svish Aug 21 '11 at 14:26
  • 2
    At least now there is an answer on SO which hopefully shows up on Google if someone else manages to overlook that red link... :P – Svish Aug 21 '11 at 14:31
  • 1
    That's the most difficult topic I've seen answered so far! thank God I google it first, I was about to ask on IRC (and get probably trashed) hehe, God bless stackOverflow :-P – patm Aug 08 '12 at 19:15
  • 1
    **The delete button has now moved to the top of the gist's page** – Daniel Smith Apr 04 '13 at 00:27
  • 6
    Note: the delete functionality is *only* available when you posted it while logged in. Anonymous gists cannot be removed. – Lekensteyn Sep 05 '13 at 07:45
  • 1
    @Lekensteyn You definitely **can** delete anonymous Gists, at least as long as you don't navigate away. – alexia May 24 '14 at 19:57
  • This answer helped: I first swore at it, because there was no delete button. Then I wondered if I was looking in the right place, and realised that I was looking at a summary of gists, not an individual gist. One needs to enter the gist to delete it. (this may prove confusing to any MS-Windows user that has ever deleted a file) – ctrl-alt-delor Aug 06 '22 at 17:51
3

I created a tool which can help you delete multiple github gists both secret and public gists at once. https://gist-cleaner.ndolestudio.com

It's open source, you can find the source code here https://github.com/NdoleStudio/gist-cleaner

Arnold Ewin
  • 1,113
  • 1
  • 13
  • 26