File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,27 @@ <h3 id="response-1">Response</h3>
182
182
< span class ="p "> }</ span >
183
183
< span class ="p "> ]</ span >
184
184
</ code > </ pre >
185
+
186
+ < h2 id ="delete-a-reference "> Delete a Reference</ h2 >
187
+
188
+ < pre > < code > DELETE /repos/:user/:repo/git/refs/:ref
189
+ </ code > </ pre >
190
+
191
+ < p > Example: Deleting a branch:</ p >
192
+
193
+ < pre > < code > DELETE /repos/octocat/Hello-World/git/refs/heads/feature-a
194
+ </ code > </ pre >
195
+
196
+ < p > Example: Deleting a tag:</ p >
197
+
198
+ < pre > < code > DELETE /repos/octocat/Hello-World/git/refs/tags/v1.0
199
+ </ code > </ pre >
200
+
201
+ < h3 id ="response-2 "> Response</ h3 >
202
+
203
+ < pre class ="headers no-response "> < code > Status: 204 No Content
204
+ X-RateLimit-Limit: 5000
205
+ X-RateLimit-Remaining: 4999</ code > </ pre >
185
206
</ div >
186
207
187
208
< div id ="js-sidebar " class ="sidebar-shell ">
You can’t perform that action at this time.
0 commit comments