---
title: "Delete Service Account"
method: DELETE
path: "/api/v1/service-accounts/{service_account_id}"
tags: ["service-accounts"]
---

# Delete Service Account

`DELETE /api/v1/service-accounts/{service_account_id}`

## Request

- Base URL: `https://api.smith.langchain.com`
- URL: `https://api.smith.langchain.com/api/v1/service-accounts/{service_account_id}`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in header `X-Organization-Id`
  - HTTP bearer

Delete a service account

## Path parameters

- `service_account_id` string, uuid, required

## Response `200`

Successful Response

- ServiceAccountDeleteResponse
  - `id` string, uuid, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `name` string, required
  - `organization_id` string, uuid, required
  - `default_workspace_id` string, uuid, nullable, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-16** `1a8ee9358d81`: 4 breaking
  - the `detail/items/` response's property type changed from `object` to `string` for status `422`
  - removed the required property `detail/items/loc` from the response with the `422` status
  - removed the required property `detail/items/msg` from the response with the `422` status
  - removed the required property `detail/items/type` from the response with the `422` status

[Operation history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/api/v1/service-accounts/:service_account_id/delete.md)

---

[API](https://skmtc.dev/langchain-ai/apis/langsmith.md) - [All operations](https://skmtc.dev/langchain-ai/apis/langsmith/llms.txt) - [OpenAPI document](https://skmtc.dev/langchain-ai/apis/langsmith/revisions/7a01c01f75e8?raw)
