.
D 2026-08-18T11:51:12.788
J comment `repo.delete`\sis\simmediate\sand\stotal:\sthe\sstore,\sthe\sderived\sindex,\sand\severy\sforge\srow\skeyed\sto\sthe\srepository.\sThere\sis\sno\sundo.\sThe\squestion\sis\swhether\sdeleted\srepositories\sshould\ssurvive\sfor\sa\sgrace\speriod\s—\sGitHub\skeeps\sthem\s90\sdays,\srestorable\sby\san\sadmin.\n\nWorth\sdeciding\sdeliberately\srather\sthan\sby\sdefault,\sbecause\sthe\stwo\sobvious\sanswers\sare\sboth\swrong\sin\sdifferent\sways.\n\n##\szit\salready\shas\san\sopinion,\sand\sit\sis\snot\s"30\sdays"\n\n`zit\spurge`\smoves\scheck-ins\sto\sa\s**graveyard**:\s`zit\spurge\slist`\sshows\swhat\sis\sthere,\s`zit\spurge\sundo\sID`\srestores\sit,\s`zit\spurge\sobliterate\sID`\sdiscards\sit\sfor\sgood.\sThree\sstates,\srestored\sexplicitly,\snever\son\sa\stimer.\n\nIts\sdocumentation\salso\sdraws\sthe\sline\sthis\sticket\shas\sto\sdraw:\n\n>\sThis\sis\sthe\stool\sfor\sthe\sordinary\saccident\s—\san\s`add\s.`\sthat\sswept\sin\sa\sbuild\stree,\snoticed\sbefore\sanyone\selse\shas\sthe\scheck-in.\sIt\sis\s**NOT\sa\stakedown**:\sa\spurge\sis\slocal,\sso\sa\speer\sthat\salready\sholds\sthe\scontent\skeeps\sit…\sUse\s`zit\sshun`\swhen\sthe\scontent\smust\snever\sexist\shere\sagain.\n\nand:\n\n>\sThe\sgraveyard\sis\slocal\sand\sdisposable,\slike\sthe\sundo\sjournal:\sit\sis\snever\san\sartifact,\snever\ssyncs,\sand\sis\snot\scarried\sby\sa\sclone.\sLosing\sit\scosts\srecoverability,\snot\sdata.\n\nThat\sis\sthe\swhole\sdesign\sin\stwo\sparagraphs,\sand\squarry\sshould\suse\sthe\ssame\svocabulary\srather\sthan\sinvent\sone.\sA\sforge\swhose\s"delete"\smeans\sone\sthing\sand\swhose\sstore's\s"purge"\smeans\sanother\sis\sa\sforge\snobody\scan\sreason\sabout.\n\n##\sWhy\sa\splain\s30-day\swindow\sis\sthe\swrong\sdefault\n\n**It\scollides\swith\sthe\sreason\speople\sdelete\sthings\surgently.**\sThe\smost\scommon\surgent\sdeletion\sis\s"this\srepository\scontains\ssomething\sit\sshould\snot"\s—\sa\skey,\sa\scustomer\sfile,\sa\sprivate\srepository\sthat\swas\sbriefly\spublic.\sFor\sthat\suser,\s"we\skept\sit\sfor\s30\sdays"\sis\sthe\sfailure,\snot\sthe\sfeature.\sA\sretention\swindow\shas\sto\sbe\ssomething\sthe\sdeleting\suser\scan\ssee\sand\soverride\sat\sthe\smoment\sof\sdeletion,\snot\sa\ssilent\spolicy.\n\n**Disk\sis\snot\sfree\shere.**\stcl's\sstore\sis\s335\sMB\sand\stk's\s277\sMB.\sA\sfleet\sthat\sholds\severy\sdeleted\srepository\sfor\sa\smonth\sis\ssized\sfor\sits\sdeletions\sas\swell\sas\sits\scontents,\sand\snothing\scurrently\sreports\show\smuch\sthe\sgraveyard\sholds.\n\n**Name\sreuse\sis\sunresolved.**\sDelete\s`foo`,\screate\sa\snew\s`foo`,\sthen\srestore\sthe\sold\sone\s—\sinto\swhat\sname?\sEither\sdeletion\sreserves\sthe\sname\sfor\sthe\swindow\s(surprising:\syou\scannot\srecreate\sa\srepository\syou\sjust\sdeleted)\sor\srestore\shas\sto\srename\s(surprising\sin\sthe\sother\sdirection).\sGitHub\sreserves.\sWhichever\sis\schosen\shas\sto\sbe\schosen,\snot\sdiscovered.\n\n**And\squarry's\sdeletion\sis\salready\snarrower\sthan\sit\slooks.**\sThe\sstore\sis\sdestroyed\sonly\swhen\squarry\screated\sit;\sadopted\sstores\sare\sonly\sunregistered,\sand\s`repo.remove`\s—\swhich\sleaves\severything\son\sdisk\s—\salready\sIS\sthe\srecoverable\spath\sfor\sthe\scommon\scase.\sSome\sof\sthe\sdemand\sfor\sa\sgrace\speriod\sis\smet\sby\sthe\soperation\sthat\salready\sexists,\sand\sthe\ssurfaces\sshould\ssay\sso\smore\sclearly.\n\n##\sShape\sworth\sconsidering\n\n1.\s**A\sgraveyard,\snot\sa\stimer.**\sDeletion\smoves\sthe\sstore\saside\sand\srecords\sa\srow:\srepository,\swhen,\sby\swhom,\sreason.\s`repo.graveyard`\slists\sit,\s`repo.restore`\sbrings\sone\sback,\s`repo.obliterate`\sfinishes\sthe\sjob.\sSame\sthree\sstates\sas\szit,\ssame\swords.\n2.\s**Retention\sas\san\soperator\spolicy,\snot\sa\sproduct\spromise.**\s`--graveyard-days\sN`,\sdefault\soff\sor\sshort.\sOff\smeans\stoday's\sbehaviour,\swhich\sis\shonest.\n3.\s**An\sescape\shatch\sat\sthe\spoint\sof\sdeletion.**\s`obliterate:\strue`\son\s`repo.delete`\sskips\sthe\sgraveyard\sentirely,\sfor\sthe\sleaked-secret\scase.\sThe\sUI\sshould\soffer\sit\splainly\srather\sthan\shiding\sit\sbehind\sa\ssecond\sworkflow.\n4.\s**Say\swhich\sone\sis\shappening.**\sThe\sconfirmation\smust\sstate\swhether\sthe\sdata\sis\srecoverable,\sbecause\s"delete"\scurrently\smeans\sdestroyed\sand\swould\scome\sto\smean\ssomething\selse.\n5.\s**Report\swhat\sthe\sgraveyard\sholds**\son\s`/fleet`,\snext\sto\sthe\singest\shealth.\sAn\sinvisible\sstore\sof\sdeleted\srepositories\sis\show\sa\sdisk\sfills.\n\n##\sWhat\sthis\sdoes\sNOT\scover\n\nContent\salready\spushed\sto\sa\speer.\sAs\szit\ssays,\sa\spurge\sis\slocal\sand\sa\speer\sthat\sholds\sthe\scontent\skeeps\sit.\sDeleting\sa\srepository\sfrom\squarry\sdoes\snot\sunpublish\sanything\sanybody\scloned,\sand\sno\sretention\spolicy\schanges\sthat.\sIf\squarry\sever\sneeds\sa\stakedown\sstory\sit\sis\s`zit\sshun`,\sand\sthat\sis\sa\sdifferent\sticket.\n\n##\sRelated\n\n-\s`a78a1bd913`\s—\srepository\slifecycle,\swhere\sdeletion\slanded.\n-\s`8152617b99`\s—\sbound\sand\squeue\sexpensive\swork:\sobliterating\sa\slarge\sstore\sis\sbulk-lane\swork.\n
J status Open
J title Should\sdeleted\srepositories\sbe\srecoverable,\sand\sfor\show\slong?
K 0c731b1455ef5277b789f0c86a7d1e48b214eca4
U dmestas
Z d7948a9c266339ed6042b4c820100f89