---
title: "Delete a retargeting pixel"
method: DELETE
path: "/api/pixels"
tags: ["Retargeting Pixels"]
---

# Delete a retargeting pixel

`DELETE /api/pixels`

## Request

- Base URL: `https://www.flyn.to`
- URL: `https://www.flyn.to/api/pixels`
- Auth: HTTP bearer

Deletes a pixel the caller created. A teammate's pixel returns 404.

**Auth:** API key (`Bearer flyn_sk_live_...`), or the signed-in dashboard session cookie when no API key header is sent. MCP OAuth access tokens are not accepted here and get 401.

**Plan:** every plan. Only the creator can delete.

**Rate limit:** none.

A malformed (non-UUID) id returns 500.

## Query parameters

- `id` string, uuid, required

## Response `200`

Deleted.

- Ok
  - `ok` true, required

## Other responses

- `400`: No id in the query string.
- `401`: No valid API key and no dashboard session. Messages: "Invalid or revoked API key", "API key has expired", "Unauthorized. Sign in to the dashboard, or pass a Bearer API key in the Authorization header.", or "Unauthorized" when the session lookup itself fails. An MCP OAuth token lands here too.
- `403`: The account is suspended.
- `404`: Not found, or created by a teammate.
- `500`: Database error, including a non-UUID id.

---

[API](https://skmtc.dev/flyn/apis/flyn-api.md) · [All operations](https://skmtc.dev/flyn/apis/flyn-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flyn/apis/flyn-api/revisions/977962a98ccb?raw)
