---
title: "Delete Membership"
method: DELETE
path: "/v1/accounts/{account_id}/memberships/{id}"
tags: ["Reseller"]
---

# Delete Membership

`DELETE /v1/accounts/{account_id}/memberships/{id}`

## Request

- Base URL: `https://api.huntress.io`
- URL: `https://api.huntress.io/v1/accounts/{account_id}/memberships/{id}`
- Auth: `basic` (a scheme the document does not define)

Deletes a single Membership associated with your account or organization. Does not delete the user associated with the membership.

## Path parameters

- `account_id` integer, required
- `id` integer, required

## Response `202`

Membership deleted

- object
  - `membership` Membership: Membership model
    - `id` integer: A unique identifier for this membership. Note that this is _not_ the id of the user, account, etc. Instead, it identifies this specific relationship, which can be used to modify or delete the membership.
    - `permissions` 'Admin' | 'Security Engineer' | 'User' | 'Read-only' | 'Finance' | 'Marketing' | 'Admin-Read-only' | 'Provisioner': The specific level of permissions that have been granted to this user in the context of this membership.
    - `account` unknown
    - `organization` unknown
    - `user` unknown
    - `created_at` string: The time and date that this membership was created.
    - `updated_at` string: The time and date that this membership was last updated.

## Other responses

- `403`: There was an issue with your API credential or permissions.
- `404`: Membership not found, possibly because it has already been deleted.
- `422`: Failed to delete membership. Please contact support.

---

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