> ## 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 a proxy

> Revoke an Agent Vault proxy's access with the Python SDK.

`client.agent_vault.proxies.revoke()` revokes a proxy's access. 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).

Revoke a proxy's access if you think a machine that runs the proxy is compromised. The proxy stops attaching credentials to requests until you [rotate its token](https://infisical.com/docs/sdks/languages/python/agent-vault/rotate-proxy-token.md).

## Parameters

**proxy\_id** `str` *required*

The ID of the proxy.

## Returns

**proxy** `AgentVaultProxy`

The revoked proxy.

```python Basic theme={"dark"}
proxy = client.agent_vault.proxies.revoke(proxy_id="<proxy-id>")
```

```json Response theme={"dark"}
{
  "id": "f1e2d3c4-b5a6-4978-8a6b-5c4d3e2f1a0b",
  "name": "edge-proxy",
  "description": "Proxy for CI runners",
  "heartbeat": null,
  "isHealthy": false,
  "rootCaFingerprint": "<sha-256-fingerprint>",
  "rootCaExpiresAt": "2036-12-01T09:00:00.000Z",
  "trafficPolicy": "service-hosts",
  "allowedHosts": "pypi.org",
  "pollInterval": 30,
  "createdAt": "2026-12-01T09:00:00.000Z"
}
```


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