---
updatedAt: 2026-10-29T08:22:22.000Z
agentTools:
  projectIndex: https://docs.yotpo.com/llms.txt
---

# Delete filter

Deletes a  webhook filter. This webhook filter can be used with multiple webhook targets, so only unused webhook filters can be deleted.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Yotpo API V3",
    "description": "Yotpo API V3 endpoints on api.yotpo.com. Webhook events are defined separately, in webhooks.json.",
    "version": "3.0"
  },
  "servers": [
    {
      "url": "https://api.yotpo.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "X-Yotpo-Token": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Yotpo-Token",
        "description": "Your Yotpo account access token. See [Authentication](https://core-api.yotpo.com/reference/yotpo-authentication) to learn how to generate your access token."
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Unauthorized. The access token in `X-Yotpo-Token` is invalid or expired, and the body is plain text. Generate a new token with [Generate access token](ref:yotpo-authentication). If the request also has an `Authorization: Bearer` header, the API checks that header instead of `X-Yotpo-Token` and returns `Bad token; invalid JSON` as JSON. Remove the `Authorization` header and send the token in `X-Yotpo-Token` only.",
        "content": {
          "text/plain": {
            "schema": {
              "type": "string",
              "example": "unauthorized"
            }
          },
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "description": "Error message.",
                  "example": "Bad token; invalid JSON"
                }
              }
            },
            "examples": {
              "Authorization header sent": {
                "value": "{\n  \"message\": \"Bad token; invalid JSON\"\n}"
              }
            }
          }
        }
      },
      "Forbidden": {
        "description": "Forbidden. The request has no `X-Yotpo-Token` header.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "description": "Error message.",
                  "example": "Forbidden"
                }
              }
            },
            "examples": {
              "Missing token": {
                "value": "{\n  \"message\": \"Forbidden\"\n}"
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "X-Yotpo-Token": []
    }
  ],
  "paths": {
    "/core/v3/stores/{store_id}/webhooks/filters/{yotpo_filter_id}": {
      "delete": {
        "summary": "Delete filter",
        "description": "Deletes a  webhook filter. This webhook filter can be used with multiple webhook targets, so only unused webhook filters can be deleted.",
        "operationId": "delete-filter",
        "parameters": [
          {
            "name": "store_id",
            "in": "path",
            "description": "The store ID (app_key)",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "yotpo_filter_id",
            "in": "path",
            "description": "The ID of the filter to delete",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK. The response has no body."
          },
          "400": {
            "description": "The filter is used by one or more subscriptions. Delete or update those subscriptions first.",
            "content": {
              "application/json": {
                "examples": {
                  "Used by a subscription": {
                    "value": "{\n  \"errors\": [\n    {\n      \"message\": \"webhook subscription(s) with id(s) 68723,68724 is using this webhook filter\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string",
                            "example": "related webhook subscription(s) with id(s) <id-list> is using this webhook filter",
                            "description": "What's wrong with the request, usually naming the missing or invalid field. Meant for logs; the wording can change, so don't parse it."
                          }
                        }
                      },
                      "description": "The validation errors. Usually one item."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "Filter not found": {
                    "value": "{\n  \"errors\": [\n    {\n      \"message\": \"webhook filter not found\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string",
                            "example": "webhook filter not found",
                            "description": "Says which object wasn't found. Meant for logs; the wording can change, so don't parse it."
                          }
                        }
                      },
                      "description": "The errors. Usually one item."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "500",
            "content": {
              "application/json": {
                "examples": {
                  "Unexpected error": {
                    "value": "{\n  \"errors\": [\n    {\n      \"message\": \"unexpected error, try again later\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string",
                            "example": "unexpected error, try again later",
                            "description": "A general error message. Retry with backoff."
                          }
                        }
                      },
                      "description": "The errors. Usually one item."
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "value": "application/json",
        "key": "Content-Type"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```

# Sibling pages

* [Create target](https://docs.yotpo.com/reference/create-target.md)
* [Retrieve targets](https://docs.yotpo.com/reference/retrieve-targets.md)
* [Retrieve target by ID](https://docs.yotpo.com/reference/retrieve-target-by-id.md)
* [Update target](https://docs.yotpo.com/reference/update-target.md)
* [Delete target](https://docs.yotpo.com/reference/delete-target.md)
* [Create filter](https://docs.yotpo.com/reference/create-filter.md)
* [Retrieve filters](https://docs.yotpo.com/reference/retrieve-filters.md)
* [Retrieve filter by ID](https://docs.yotpo.com/reference/retrieve-filter-by-id.md)
* [Update filter](https://docs.yotpo.com/reference/update-filter.md)
* [Create subscription](https://docs.yotpo.com/reference/create-subscription.md)
* [Retrieve subscriptions](https://docs.yotpo.com/reference/retrieve-subscriptions.md)
* [Retrieve subscription by ID](https://docs.yotpo.com/reference/retrieve-subscription-by-id.md)
* [Update subscription](https://docs.yotpo.com/reference/update-subscription.md)
* [Delete subscription](https://docs.yotpo.com/reference/delete-subscription.md)