---
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

## Changes

- **2026-04-29** `d5de67e6bd60` — 1 info
  - endpoint added
- **2025-02-27** `b0ed6c7dac42` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/redis/apis/redis-data-integration-api/changes/api/v2/pipelines/:name/flush-target/:target_name/post.md)

---

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