---
title: "Delete Service Account"
method: DELETE
path: "/organizations/{organizationId}/service-accounts/{serviceAccountId}"
tags: ["Delete Service Accounts"]
---

# Delete Service Account

`DELETE /organizations/{organizationId}/service-accounts/{serviceAccountId}`

## Request

- Base URL: `https://mixpanel.com/api/query`
- URL: `https://mixpanel.com/api/query/organizations/{organizationId}/service-accounts/{serviceAccountId}`
- Auth: one of:
  - HTTP basic
  - HTTP basic
- TypeScript: <https://skmtc.dev/mixpanel/apis/query-api/docs/organizations/:organizationId/service-accounts/:serviceAccountId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Removes the service account from all associated projects and deletes it from the organization

## Response `200`

Successfully deleted service account

- object

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/mixpanel/apis/query-api.md) - [All operations](https://skmtc.dev/mixpanel/apis/query-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mixpanel/apis/query-api/revisions/f442da95252a?raw)
