---
title: "Delete a service account in the database"
method: DELETE
path: "/oauth/serviceAccounts/{client_id}"
tags: ["OAuth"]
---

# Delete a service account in the database

`DELETE /oauth/serviceAccounts/{client_id}`

## Request

- Base URL: `https://example.itential.io`
- URL: `https://example.itential.io/oauth/serviceAccounts/{client_id}`
- Auth: none declared

Deletes a service account in the database.

## Path parameters

- `client_id` string, required: String representation of a MongoDB ObjectId

## Response `200`

Result of service account deletion process

- OauthDeleteServiceAccountResponse200
  - `status` 'OK' | 'Created': The status of the API request.
  - `message` string: Message containing either confirmation of the operation or the reason for the failure of the operation.

## Other responses

- `500`: Error response from API

---

[API](https://skmtc.dev/itential/apis/itential-2.md) - [All operations](https://skmtc.dev/itential/apis/itential-2/llms.txt) - [OpenAPI document](https://skmtc.dev/itential/apis/itential-2/revisions/2095cc90e583?raw)
