apicheats.dev Cheat sheet Raw .md
DELETE

Try DELETE /repos/{owner}/{repo}/secret-scanning/custom-patterns — GitHub API

GitHub playground

Bulk delete repository custom patterns

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

2 body fields
  • patterns · required · object[] — The list of custom patterns to delete.
  • post_delete_action · optional · string — What to do with alerts associated with the deleted patterns. `delete_alerts` permanently removes the alerts. `resolve_alerts` resolves the alerts as "pattern deleted". Defaults to `delete_alerts` when not specified.