---
title: "Purge invocation journal"
method: PATCH
path: "/invocations/{invocation_id}/purge-journal"
tags: ["invocation"]
---

# Purge invocation journal

`PATCH /invocations/{invocation_id}/purge-journal`

Deletes only the journal entries for a completed invocation, while retaining its metadata.
This operation only applies to invocations that have already completed.

## Path parameters

- `invocation_id` string, required

## Response `200`

Invocation journal purged successfully, metadata retained

## Other responses

- `400`
- `404`
- `409` — The invocation is not yet completed. An invocation can be purged only when completed.
- `503` — Error when routing the request within restate.

---

[API](https://skmtc.dev/restatedev/apis/admin-api.md) · [All operations](https://skmtc.dev/restatedev/apis/admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/restatedev/admin-api/revisions/5361f4818c71/schema)
