---
title: "Move or remove files from cache, error and archive folders"
method: DELETE
path: "/api/history/{historyId}/cache/update"
tags: ["History Queries"]
---

# Move or remove files from cache, error and archive folders

`DELETE /api/history/{historyId}/cache/update`

Update cache content by moving or removing files from cache, archive and error folders

## Path parameters

- `historyId` string, required

## Request body

- CacheContentUpdateCommand
  - `cache` object, required
    - `move` object[], required
      - `to` 'cache' | 'error' | 'archive', required
      - `filename` string, required
    - `remove` string[], required
  - `error` object, required
    - `move` object[], required
      - `to` 'cache' | 'error' | 'archive', required
      - `filename` string, required
    - `remove` string[], required
  - `archive` object, required
    - `move` object[], required
      - `to` 'cache' | 'error' | 'archive', required
      - `filename` string, required
    - `remove` string[], required

## Response `204`

No Content

---

[API](https://skmtc.net/optimistiksas/apis/oibus-api.md) · [All operations](https://skmtc.net/optimistiksas/apis/oibus-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/optimistiksas/oibus-api/revisions/fe8fd32c9fdc/schema)
