---
title: Delete a service account
description: Deletes a service account and revokes its keys.
doc_version: 0.1.0-preview
last_updated: 2026-09-14
---

# Delete a service account

`DELETE /v1/workspaces/{workspaceId}/service-accounts/{serviceAccountId}`

Deletes a service account and revokes its keys. Requires an admin key.

## Authentication

Send `Authorization: Bearer <SPARK_API_KEY>`. Read the key from the
SPARK_API_KEY environment variable. Never print it.

## Path parameters

- `workspaceId` (string) — The workspace id.
- `serviceAccountId` (string) — The service account id.

## Example request

```bash
curl --request DELETE \
  --url "https://api.beta.graphon.ai/v1/workspaces/wspQ7WsH2Np5L/service-accounts/sacD4e5F6g7H8" \
  --header "Authorization: Bearer $SPARK_API_KEY"
```

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
