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

# Revoke access

> Revoke an Agent Vault access bundle with the Node.js SDK.

`client.agentVault().accessBundles.revoke()` revokes an access bundle from users, machine identities, or groups. Pass at least one ID, and at most 100 in total. The client must log in as a user or machine identity with the **Admin** role in the [Agent Vault project](https://infisical.com/docs/documentation/platform/agent-vault/access-control#product-membership).

* If someone with the **Member** role no longer has any grant on the access bundle, the proxy stops attaching the bundle's credentials to their sessions and to the sessions that machine identities created on their behalf, as [Access changes](https://infisical.com/docs/documentation/platform/agent-vault/sessions#access-changes) describes (a session's inline services keep working, so to stop every credential, [revoke the session](https://infisical.com/docs/sdks/languages/node/agent-vault/revoke-session.md))
* Admins can use every access bundle without a grant, so their sessions keep getting credentials after you revoke their grants (to stop one of their agents, [revoke its session](https://infisical.com/docs/sdks/languages/node/agent-vault/revoke-session.md))

## Parameters

**accessBundleId** `string` *required*

The ID of the access bundle.

**options** `object` *required*

**properties**

**userIds** `string[]`

The IDs of the users to revoke the access bundle from.

**machineIdentityIds** `string[]`

The IDs of the machine identities to revoke the access bundle from.

**groupIds** `string[]`

The IDs of the groups to revoke the access bundle from.

## Returns

**result** `RevokeAgentVaultAccessBundleResponse`

The revoked grants in `members`, and the users, machine identities, and groups that didn't have the access bundle in `skipped`.

```typescript Basic theme={"dark"}
const { members, skipped } = await client.agentVault().accessBundles.revoke("<access-bundle-id>", {
  userIds: ["<user-id>"], // Optional
  machineIdentityIds: ["<machine-identity-id>"], // Optional
  groupIds: ["<group-id>"] // Optional
});
```

```json Response theme={"dark"}
{
  "members": [
    {
      "type": "user",
      "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d"
    }
  ],
  "skipped": []
}
```


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