---
updatedAt: 2026-11-03T13:13:53.000Z
agentTools:
  projectIndex: https://developerdocs.hawksearch.com/llms.txt
---

# Delete banner by id

Deletes a banner by its id

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "v1",
    "title": "HawkSearch.Api"
  },
  "paths": {
    "/api/v11/banner/{id}": {
      "delete": {
        "tags": [
          "Banner"
        ],
        "summary": "Delete banner by id",
        "description": "Deletes a banner by its id",
        "operationId": "Banner_Delete_id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Id of a banner to delete",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "X-HawkSearch-ApiKey",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Banner"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Banner"
                }
              },
              "text/javascript": {
                "schema": {
                  "$ref": "#/components/schemas/Banner"
                }
              },
              "application/javascript": {
                "schema": {
                  "$ref": "#/components/schemas/Banner"
                }
              },
              "application/json-p": {
                "schema": {
                  "$ref": "#/components/schemas/Banner"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/Banner"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/Banner"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://dev.hawksearch.net"
    }
  ],
  "components": {
    "schemas": {
      "Banner": {
        "required": [
          "Name"
        ],
        "type": "object",
        "properties": {
          "Id": {
            "format": "int32",
            "type": "integer"
          },
          "SyncGuid": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "Name": {
            "type": "string"
          },
          "BannerType": {
            "pattern": "^(Image|Custom|Widget|Featured)$",
            "type": "string"
          },
          "Width": {
            "format": "int32",
            "maximum": 2147483647,
            "minimum": 0,
            "type": "integer"
          },
          "Height": {
            "format": "int32",
            "maximum": 2147483647,
            "minimum": 0,
            "type": "integer"
          },
          "Link": {
            "type": "string"
          },
          "Filename": {
            "type": "string"
          },
          "AltText": {
            "type": "string"
          },
          "HTML": {
            "type": "string"
          },
          "Target": {
            "type": "string"
          },
          "IsTrackingEnabled": {
            "type": "boolean"
          },
          "RuleXML": {
            "type": "string"
          },
          "RuleStyle": {
            "type": "string"
          },
          "RuleSortFieldId": {
            "format": "int32",
            "type": "integer"
          },
          "RuleNofItems": {
            "format": "int32",
            "type": "integer"
          },
          "RuleSortDirection": {
            "pattern": "^(Asc|Desc)$",
            "type": "string"
          },
          "RuleTitle": {
            "type": "string"
          },
          "RuleIsDynamic": {
            "type": "boolean"
          },
          "WidgetId": {
            "format": "int32",
            "type": "integer"
          },
          "WidgetArgs": {
            "type": "string"
          },
          "Tags": {
            "type": "string"
          },
          "IsMobile": {
            "type": "boolean"
          },
          "DisableHtmlEditor": {
            "type": "boolean"
          },
          "MobileBannerType": {
            "type": "string"
          },
          "MobileIsTrackingEnabled": {
            "type": "boolean"
          },
          "MobileHTML": {
            "type": "string"
          },
          "MobileWidth": {
            "format": "int32",
            "type": "integer"
          },
          "MobileHeight": {
            "format": "int32",
            "type": "integer"
          },
          "MobileLink": {
            "type": "string"
          },
          "MobileAltText": {
            "type": "string"
          },
          "MobileTarget": {
            "type": "string"
          },
          "MobileFileName": {
            "type": "string"
          },
          "MobileWidgetId": {
            "format": "int32",
            "type": "integer"
          },
          "MobileWidgetArgs": {
            "type": "string"
          },
          "MobileCustomWidgetArgs": {
            "type": "string"
          },
          "MobileDisableHtmlEditor": {
            "type": "boolean"
          },
          "CustomWidgetArgs": {
            "type": "string"
          },
          "CreateDate": {
            "format": "date-time",
            "type": "string"
          },
          "ModifyDate": {
            "format": "date-time",
            "type": "string"
          },
          "IsTablet": {
            "type": "boolean"
          },
          "TabletBannerType": {
            "type": "string"
          },
          "TabletIsTrackingEnabled": {
            "type": "boolean"
          },
          "TabletHTML": {
            "type": "string"
          },
          "TabletWidth": {
            "format": "int32",
            "type": "integer"
          },
          "TabletHeight": {
            "format": "int32",
            "type": "integer"
          },
          "TabletLink": {
            "type": "string"
          },
          "TabletAltText": {
            "type": "string"
          },
          "TabletTarget": {
            "type": "string"
          },
          "TabletFileName": {
            "type": "string"
          },
          "TabletWidgetId": {
            "format": "int32",
            "type": "integer"
          },
          "TabletWidgetArgs": {
            "type": "string"
          },
          "TabletCustomWidgetArgs": {
            "type": "string"
          },
          "TabletDisableHtmlEditor": {
            "type": "boolean"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```