POST/users/{username}/attestations/delete-request

Delete artifact attestations in bulk

Deletes artifact attestations for a user in bulk, identifying them by subject digest or unique attestation ID. Provide either subject_digests or attestation_ids, but not both; the selected list must contain between 1 and 1,024 entries.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 parameter · 1 body field
usernamestringrequired
The handle of the GitHub user whose artifact attestations you want to delete.

Bulk deletion criteria. Provide either subject_digests or attestation_ids, but not both; the selected array must contain between 1 and 1,024 entries.

subject_digestsarray<string>required
List of subject digests associated with the artifact attestations to delete.

2 status codes
200Returns a response confirming the bulk attestation deletion request was processed.
404Returned when the requested resource is not found.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 404 is returned when the user or requested attestations cannot be found. The username path parameter must identify a user account. Provide either subject_digests or attestation_ids, but not both; the selected list must contain between 1 and 1,024 entries.