MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / delete

Method delete

github/Artifact.py:138–143  ·  view source on GitHub ↗

:calls: `DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id} `_

(self)

Source from the content-addressed store, hash-verified

136 return self._workflow_run.value
137
138 def delete(self) -> bool:
139 """
140 :calls: `DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id} <https://docs.github.com/en/rest/actions/artifacts#delete-an-artifact>`_
141 """
142 status, headers, data = self._requester.requestBlob("DELETE", self.url)
143 return status == 204
144
145 def _useAttributes(self, attributes: dict[str, Any]) -> None:
146 if "archive_download_url" in attributes: # pragma no branch

Callers

nothing calls this directly

Calls 1

requestBlobMethod · 0.80

Tested by

no test coverage detected