---
title: "Flush Target"
method: POST
path: "/api/v2/pipelines/{name}/flush-target/{target_name}"
tags: ["v2", "pipelines", "targets"]
---

# Flush Target

`POST /api/v2/pipelines/{name}/flush-target/{target_name}`

Flushes the target Redis database.

Sends a FLUSHALL command to the target Redis database through the collector API.

## Path parameters

- `name` string, required — Pipeline name
- `target_name` string, required — Target name

## Response `200`

FLUSHALL completed successfully

- FlushResponse — Response model for the target flush operation.
  - `success` boolean, required — Whether the flush operation was successful
  - `message` string, required — Human-readable result message

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `502` — Bad Gateway
- `503` — Service Unavailable

---

[API](https://skmtc.net/redis/apis/redis-data-integration-api.md) · [All operations](https://skmtc.net/redis/apis/redis-data-integration-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/redis/redis-data-integration-api/versions/30f630f0aac5/schema)
