---
title: "Delete recommendation visibility rule by id"
method: DELETE
path: "/api/v11/recommendationvisibility/{id}"
tags: ["RecommendationVisibility"]
---

# Delete recommendation visibility rule by id

`DELETE /api/v11/recommendationvisibility/{id}`

## Request

- Base URL: `https://indexing-dev.hawksearch.net`
- URL: `https://indexing-dev.hawksearch.net/api/v11/recommendationvisibility/{id}`
- Auth: none declared. Required headers: `X-HawkSearch-ApiKey`
- TypeScript: <https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/docs/api/v11/recommendationvisibility/:id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes a recommendation visibility rule by its id

## Path parameters

- `id` integer, required

## Headers

- `X-HawkSearch-ApiKey` string, required

## Response `200`

OK

- RecommendationVisibilityModel
  - `RuleId` integer
  - `Name` string, required
  - `IsTrigger` boolean
  - `IsLast` boolean
  - `TriggerXml` string
  - `VisibilityXml` string, required
  - `SortOrder` integer
  - `StartDate` string, date-time
  - `EndDate` string, date-time
  - `Tags` string
  - `SyncGuid` string, uuid
  - `CreateDate` string, date-time
  - `ModifyDate` string, date-time

---

[API](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi.md) - [All operations](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/llms.txt) - [OpenAPI document](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/revisions/24cba7bf3468?raw)
