Sample - GitHub REST API
DELETE/orgs/{org}/attestations/digest/{subject_digest}

Delete attestations by subject digest

Deletes an artifact attestation identified by its subject digest from an organization. Supply subject_digest together with the case-insensitive organization name in org to identify the attestation to remove.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
orgstringrequired
The organization name associated with the attestation; matching is not case-sensitive.
subject_digeststringrequired
The subject digest identifying the artifact attestation to delete.

3 status codes
200Returns a response confirming that the artifact attestation was deleted.
204Returns no content after deleting the artifact attestation.
404Returned when the organization or artifact attestation identified by `subject_digest` does not exist.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 404 is returned when the organization or no artifact attestation matches subject_digest. org identifies the organization, and subject_digest must identify the attestation to delete.