---
title: "Delete the cached data from Memcached for a given entity, HuBMAP-Read access is required in AWS API Gateway"
method: DELETE
path: "/entities/{id}/flush-cache"
---

# Delete the cached data from Memcached for a given entity, HuBMAP-Read access is required in AWS API Gateway

`DELETE /entities/{id}/flush-cache`

## Path parameters

- `id` string, required

## Response `200`

A confirmation message upon successful operation

## Other responses

- `400` — Invalid or misformatted entity identifier
- `401` — The user's token has expired or the user did not supply a valid token
- `403` — The user is not authorized to query the provenance of the given entity.
- `404` — The target entity could not be found
- `500` — Internal error

## Changes

- **2025-03-18** `a192f35c6b16` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hubmapconsortium/apis/hubmap-entity-api/changes/entities/:id/flush-cache/delete.md)

---

[API](https://skmtc.dev/hubmapconsortium/apis/hubmap-entity-api.md) · [All operations](https://skmtc.dev/hubmapconsortium/apis/hubmap-entity-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hubmapconsortium/hubmap-entity-api/revisions/a192f35c6b16/schema)
