Deletes a service account from the project.

DELETE /organization/projects/{project_id}/service_accounts/{service_account_id}

Path parameters

  • project_id string Required

    The ID of the project.

  • service_account_id string Required

    The ID of the service account.

Responses

  • 200 application/json

    Project service account deleted successfully.

    Hide response attributes Show response attributes object
    • object string Required

      Value is organization.project.service_account.deleted.

    • id string Required
    • deleted boolean Required
DELETE /organization/projects/{project_id}/service_accounts/{service_account_id}
curl \
 --request DELETE 'https://api.openai.com/v1/organization/projects/{project_id}/service_accounts/{service_account_id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "object": "organization.project.service_account.deleted",
  "id": "string",
  "deleted": true
}