---
title: "Remove requests by criteria"
method: POST
path: "/__admin/requests/remove"
tags: ["Requests"]
---

# Remove requests by criteria

`POST /__admin/requests/remove`

Removed requests logged in the journal matching the specified criteria

## Request body

- object
  - `basicAuthCredentials` object — Pre-emptive basic auth credentials to match against
    - `password` string, required
    - `username` string, required
  - `bodyPatterns` object[] — Request body patterns to match against in the <key>: { "<predicate>": "<value>" } form
  - `cookies` object — Cookie patterns to match against in the <key>: { "<predicate>": "<value>" } form
  - `headers` object — Header patterns to match against in the <key>: { "<predicate>": "<value>" } form
  - `method` string — The HTTP request method e.g. GET
  - `queryParameters` object — Query parameter patterns to match against in the <key>: { "<predicate>": "<value>" } form
  - `url` string — The path and query to match exactly against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
  - `urlPath` string — The path to match exactly against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
  - `urlPathPattern` string — The path regex to match against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
  - `urlPattern` string — The path and query regex to match against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.

## Response `200`

Removed request details

---

[API](https://skmtc.net/wiremock/apis/admin.md) · [All operations](https://skmtc.net/wiremock/apis/admin/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wiremock/admin/versions/297dc3b67afb/schema)
