v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 MB
secret-scanning

Bulk delete enterprise custom patterns

Bulk deletes secret scanning custom patterns for an enterprise.

Personal access tokens (classic) need the admin:enterprise scope to use this endpoint.

delete/enterprises/{enterprise}/secret-scanning/custom-patterns

Path parameters

enterprisestring required

The slug version of the enterprise name.

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.