# IRPCObjectOperations.RemoveFromRecentlyAccessed

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Vault API](https://developer.m-files.com/APIs/gRPC-API/vault/index.md) > [Objects, versions, properties and files](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/RemoveFromRecentlyAccessed/

Badges: `Vault API / core` `write` `session or assertion` `returns metadata structure version`

Removes the specified objects from being shown in 'Recently Accessed by Me'.

- **Service:** [Objects, versions, properties and files](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/index.md) `MFiles.IRPCObjectOperations`
- **gRPC method:** `/MFiles.IRPCObjectOperations/RemoveFromRecentlyAccessed`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/remove-from-recently-accessed`
- **Request:** [`RemoveFromRecentlyAccessedRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/RemoveFromRecentlyAccessed/index.md#request)
- **Response:** [`RemoveFromRecentlyAccessedResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/RemoveFromRecentlyAccessed/index.md#response)
- **Book and level:** Vault API, core
- **Kind:** write
- **Session:** Required: a session (mfiles-session-id-bin metadata) or a session assertion (x-mf-session-assertion metadata).
- **Idempotent:** no
- **Returns metadata structure version:** yes (in the mfiles-metadata-version-bin trailer)
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

`object_count` must equal the number of `remove_objects`; otherwise the call fails with "The
parameter is incorrect. (ObjectCount does not match array size)". With `remove_all`,
the whole list is cleared.

<a id="request"></a>

## Request: RemoveFromRecentlyAccessedRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `object_count` | `int32` | The number of entries in `remove_objects`. Must match it. |
| `remove_objects[]` | repeated [`ObjID`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjID/index.md) | The objects to remove from the caller's Recently accessed list. |
| `remove_objects[].type` | `int32` | The object type ID, for example 0 for documents. In a lookup value, the value list ID (for a lookup to objects, the object type ID). |
| `remove_objects[].item_id` | [`ItemID`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ItemID/index.md) | The ID of the object within its type, in `item_id.internal_id`. |
| `remove_objects[].item_id.internal_id` | `int32` | The ID of the object or value list item. |
| `remove_objects[].item_id.external_repository_id` | [`ExternalRepositoryID`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExternalRepositoryID/index.md) | Used only for objects in external repositories (external connectors). Leave it unset for objects stored in the vault. |
| `remove_all` | `bool` | True to clear the whole list. |

<a id="response"></a>

## Response: RemoveFromRecentlyAccessedResponse

No fields.
