We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 768c715 commit 56aa4b3Copy full SHA for 56aa4b3
src/main/java/org/kohsuke/github/GHDeployment.java
@@ -194,6 +194,16 @@ public String getSha() {
194
return sha;
195
}
196
197
+ /**
198
+ * Deletes this deployment.
199
+ *
200
+ * @throws IOException
201
+ * the io exception
202
+ */
203
+ public void delete() throws IOException {
204
+ root().createRequest().method("DELETE").withUrlPath(owner.getApiTailUrl("deployments/" + getId())).send();
205
+ }
206
+
207
/**
208
* Create status gh deployment status builder.
209
*
0 commit comments