Bulk Delete Monitors
DELETE /api/0/organizations/{organization_id_or_slug}/detectors/
Bulk delete Monitors for a given organization
Path Parameters
organization_id_or_slug(string)REQUIREDThe ID or slug of the organization the resource belongs to.
Query Parameters:
project(array(integer))The IDs of projects to filter by.
-1means all available projects. For example, the following are valid parameters:/?project=1234&project=56789/?project=-1
query(string)An optional search query for filtering monitors.
sortBy(string)The property to sort results by. If not specified, the results are sorted by id.
Available fields are:
nameidtypeconnectedWorkflowslatestGroupopenIssues
Prefix with
-to sort in descending order.id(array(integer))The ID of the monitor you'd like to query.
Scopes
You need to authenticate via bearer auth token.
<auth_token> requires one of the following scopes:alerts:writeorg:adminorg:readorg:write
Copied
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/detectors/ \ -H 'Authorization: Bearer <auth_token>' \ -X DELETE
RESPONSE
CopiedSuccess.
Was this helpful?