# Revoke memory store permission

Launch stage: Beta

`POST /api/2.0/agents/{name=memory-stores/*}/permissions:revoke`

`POST /api/agents/v1/{name=memory-stores/*}/permissions:revoke`

Removes a principal's explicit READ and WRITE grants on a memory store. Only the owner or a workspace admin may revoke permissions. Ownership and inherited access are unaffected.

API scopes: agent-kit

## Path parameters

- `name` (string, required)
  Resource name in the form `memory-stores/{managed_memory_store_id}`.

## Request body

- `principal` (object, required)
  Principal whose READ and WRITE grants will be removed.
  - `name` (string, required)
  - `principal_type` (string, optional)
    The kind of principal. Required unless the deprecated type alias is supplied.
    Possible values:
    - `USER`
    - `SERVICE_PRINCIPAL`

## Response

```json
{}
```

