Sample - OpenAI API
DELETE/organization/projects/{project_id}/spend_alerts/{alert_id}

Delete a project spend alert

Deletes a spend alert configured for a project. Supply project_id and alert_id to identify the project and the alert you want to remove.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
project_idstringrequired
The unique identifier of the project containing the spend alert.
alert_idstringrequired
The unique identifier of the project spend alert to delete.

1 status code
200Returns a deletion confirmation containing the deleted alert ID, the project.spend_alert.deleted object type, and a boolean `deleted` value.
idstringrequired
The deleted spend alert ID.
objectstringrequired
Always `project.spend_alert.deleted`.
Allowed:project.spend_alert.deleted
deletedbooleanrequired
Whether the spend alert was deleted.

Error handling

project_id must identify the project containing the alert, and alert_id must identify the project spend alert to delete. The response confirms deletion through the deleted field.