Skip to content

Delete request logs

Before you begin

Role
Editor or higher.

Delete request logs you do not want kept, such as a request that carried someone’s real details. A deleted log cannot be restored.

  1. Open the project’s Request logs tab.

  2. Check the box on each row you want to delete. To check a run of rows, check the first, then hold Shift while you check the last. Select every log on this page, the box in the column heading, checks the whole page.

  3. Select Delete 3 selected; the number is how many rows you checked.

  4. Confirm with Delete 3 logs, or Delete log for a single row.

To delete one row without checking it, open it with Request and response, select Delete this log at the end of the exchange, then Delete log.

Busy traffic cannot be cleared a page at a time. Delete it in one step instead:

  1. Open the project’s Request logs tab. For one mock’s requests, open its logs instead: select the number in the mock’s Logs column on the Mocks tab.

  2. Narrow the list to what you want gone with Search URL and, under Filters, Any method, Any outcome, With or without chaos, From and To; see Read request logs. With no filter set, every log matches. To clear away a chaos test’s traffic, choose Caused by chaos.

  3. Select More actions on these logs, the menu beside the order, then Delete 120 matching…; the number is how many requests match on every page, not only this one. With no filter set it reads Delete all 120 logs…. When more than 10,000 requests match a filter, the count stops there and the item reads Delete 10,000+ matching…; every match is still deleted.

  4. The confirmation names the filters. Confirm with Delete logs.

This removes every request the filters match, on every page. Requests that arrive while the confirmation is open and match the filters go too, so the message can name more than the menu did. On one mock’s logs, only that mock’s requests are removed, including the ones any response of its response sequence answered; the mock itself is not changed.

A message confirms it, such as “Deleted 3 request logs”, and the list reads the page again without them.

The deletion is recorded in the workspace’s activity, which Admins and Owners can read: who deleted, how many logs, and which.

On Insights, the chart, the totals and the Unmatched requests and Busiest endpoints tables keep counting the deleted requests, because they are counted separately when traffic arrives. To take an endpoint out of the two tables as well, forget it.

  • There is no undo and no bin.
  • Deleting a log does not give back usage: the request still counts towards the plan’s request limits.
  • Logs are removed on their own once they are older than the plan keeps them, or when the workspace reaches its log row or storage limit; see How long it is kept.
  • To stop keeping new requests rather than delete old ones, turn off Store request logs in the project’s settings, or Log request headers and body to keep them without their details; see the settings that control it.
  • Checked rows come from the page you are on. An AI assistant can delete one mock’s logs, with the delete_mock_request_logs tool, but not by filter.

Report a problem with this page