# Remove environment grant

`DELETE /v1/projects/{project}/environments/{environment}/grants/{grant}`, operation `environments.RemoveEnvironmentGrant`

Revokes an access profile or secret grant from a standalone environment and flushes its credential cache immediately.

Allowed for callers with environments.environments.update on the environment or setIamPolicy on the granted target resource.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `project` | path | Yes | `string` | The project's ID. |
| `environment` | path | Yes | `string` | The environment's ID. |
| `grant` | path | Yes | `string (uuid)` | The grant's ID. |

## Responses

### 200

OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `grants` | `EnvironmentGrant[]` | Yes | Grants assigned to the environment, oldest first. |

### default

Error

Base URL: `https://api.kosem.ai`. See [API conventions](https://docs.kosem.ai/reference/api-conventions.md) for authentication, pagination and errors, and [https://docs.kosem.ai/openapi.yaml](https://docs.kosem.ai/openapi.yaml) for the full OpenAPI document.