> ## Documentation Index
> Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete account member

> Remove a member from the account, or leave it yourself; removing another member requires account.members.manage.

`revokeAccountMember(input: AccountMemberRevokeInput!): AccountMutationResult!`

Requires account.read; API keys also need delete scope.

**Deprecated.** Legacy revoke alias.

Use Delete account member (`Mutation.deleteAccountMember`) instead.

**Deprecated:** Use deleteAccountMember. (CR-account-member-revoke-alias)

## Arguments

| Argument | Type | Required |
| - | - | - |
| `input` | [`AccountMemberRevokeInput!`](https://veryfront.com/docs/cloud/graphql/types/accountmemberrevokeinput) | Yes |

## Input fields

### input

[`AccountMemberRevokeInput`](https://veryfront.com/docs/cloud/graphql/types/accountmemberrevokeinput)

| Field | Type | Required | Description |
| - | - | - | - |
| `accountId` | [`ID!`](https://veryfront.com/docs/cloud/graphql/types/id) | Yes | |
| `userId` | [`ID!`](https://veryfront.com/docs/cloud/graphql/types/id) | Yes | Member to remove. Members may remove themselves. Removing another member requires account.members.manage. Removing another owner requires account ownership authority. The account must retain at least one owner. Removing an absent member returns 404. Projects and financial history are not touched. |

## Response

Returns [`AccountMutationResult!`](https://veryfront.com/docs/cloud/graphql/types/accountmutationresult). Open the type for its fields and nested types.

| Field | Type | Description |
| - | - | - |
| `ok` | [`Boolean!`](https://veryfront.com/docs/cloud/graphql/types/boolean) | Always true: the account mutation succeeded. |
| `success` | [`Boolean!`](https://veryfront.com/docs/cloud/graphql/types/boolean) | Deprecated: Use ok. (CR-account-mutation-result-success) |

Types marked with `!` cannot be null. Lists use `[Type]` notation. The [type index](https://veryfront.com/docs/cloud/graphql/schema.md) lists all published input and response types.

## Example

```graphql title="query.graphql" theme={null}
mutation RevokeAccountMember($input: AccountMemberRevokeInput!) {
  revokeAccountMember(input: $input) {
    ok
    success
  }
}
```

```json title="variables.json" theme={null}
{
  "input": {
    "accountId": "00000000-0000-4000-8000-000000000001",
    "userId": "00000000-0000-4000-8000-000000000001"
  }
}
```

<details>
  <summary>Try this mutation</summary>

  Calls use `https://api.veryfront.com/graphql`. Replace sample values with resources you can access. See [Authentication](https://veryfront.com/docs/cloud/authentication.md) for credentials and permissions.

  Bearer token or API key

  Stored in this tab's session. Clear credential

  Mutation

  Variables (JSON)
</details>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.