---
title: "Reset the precomputed data related to the pushed events."
method: POST
path: "/events/clear_cache"
tags: ["events", "default"]
---

# Reset the precomputed data related to the pushed events.

`POST /events/clear_cache`

## Request

- Base URL: `{{ server_url }}/v1`
- URL: `{{ server_url }}/v1/events/clear_cache`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`
- TypeScript: <https://skmtc.dev/athenian/apis/title/docs/events/clear_cache/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- DeleteEventsCacheRequest: Definition of the cache reset operation.
  - `account` integer, required: Account ID.
  - `repositories` RepositoryID[], required: Set of repositories. An empty list raises a bad response 400. Duplicates are automatically ignored.
  - `targets` string[], required: Parts of the precomputed cache to reset.

## Response `200`

Empty response indicates a successful operation.

- [object Object]

## Other responses

- `403`: Calling user is not allowed to access the specified repositories.
- `404`: The user does not belong to the specified account.
- `422`: The account's installation has not finished yet.
- `424`: One or more logical repositories miss the release settings.

---

[API](https://skmtc.dev/athenian/apis/title.md) - [All operations](https://skmtc.dev/athenian/apis/title/llms.txt) - [OpenAPI document](https://skmtc.dev/athenian/apis/title/revisions/110c9f7cffdd?raw)
