secret-scanning

Bulk delete organization custom patterns

Changed on

Bulk deletes secret scanning custom patterns for an organization.

Personal access tokens (classic) need the write:org scope to use this endpoint.

delete/orgs/{org}/secret-scanning/custom-patterns

Request

  • Base URL: https://api.github.com
  • URL: https://api.github.com/orgs/{org}/secret-scanning/custom-patterns
  • Auth: none declared

Path parameters

orgstring required

The organization name. The name is not case sensitive.

Request body

post_delete_action'delete_alerts' | 'resolve_alerts'

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.

Response

All patterns deleted successfully.

Changes