---
updatedAt: 2026-09-28T14:14:22.000Z
agentTools:
  projectIndex: https://developer.searchblox.com/llms.txt
---

# Delete Document  - rest/v2/api/delete

JSON Payload

[block:parameters]
{
  "data": {
    "h-0": "XML Tag/JSON key",
    "h-1": "Attribute",
    "h-2": "Value",
    "0-0": "searchblox",
    "0-1": "licenseid",
    "0-2": "License value from license.xml file",
    "1-0": "apikey",
    "1-2": "API key from https://localhost:8443/console?page=admin&tab=license.",
    "2-0": "document",
    "3-0": "document",
    "2-1": "colname",
    "3-1": "uid",
    "2-2": "Name of the custom collection",
    "3-2": "Value of unique identifier (file location http://...,\nfile://c:/documents/... or assigned uid)"
  },
  "cols": 3,
  "rows": 4
}
[/block]

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "12.2"
  },
  "servers": [
    {
      "url": "https://127.0.0.1:8443/"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/rest/v2/api/delete": {
      "post": {
        "summary": "Delete Document  - rest/v2/api/delete",
        "description": "JSON Payload",
        "operationId": "json-restv1apidelete",
        "parameters": [
          {
            "name": "content-type",
            "in": "header",
            "description": "application/json",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accept",
            "in": "header",
            "description": "application/json",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SB-PKEY",
            "in": "header",
            "description": "Security Key by SBAdmin or Admin",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "status code : 2001"
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  “message”: “Invalid request/ Collection not found”,\n  “statusCode”: 50009\n}"
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "xml",
              "code": "<?xml version=”1.0″ encoding=”utf-8″?>\n  <searchblox>\n  \t<statuscode>100</statuscode>\n  \t<statusdesc>Document Indexed</statusdesc>\n   </searchblox>"
            }
          ],
          "samples-languages": [
            "xml"
          ]
        },
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {},
              "examples": {
                "Request Example": {
                  "value": {
                    "apikey": "302D02144F115712204DD54596EDDCCEDD284878D3BBFA130215008BF2501E38561A439C9260D7",
                    "document": {
                      "colname": "Custom_Collection",
                      "uid": "http://www.searchblox.com"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```