HigherData

HigherData / Tool

searches.delete

Delete a saved search in the current space. Refuses when an audience list still uses it. Dry run previews the deletion.

Scopes: data:read, data:write

Send execute false to preview the change. Send execute true to write it. A preview does not change stored data.

REST: POST /api/v1/tools/searches.delete?execute=false. The same call is POST /api/v1/searches/delete?execute=false.

MCP tool name: searches_delete. It is in the default MCP catalog when your scopes allow it.

Input

searches.delete input
FieldTypeRequiredDescription
idstringyesSaved search id in the current space. UUID.

Output

searches.delete output
FieldTypeRequiredDescription
executedbooleanyes
affectedintegeryesAt least 0.
namestringyes

Request

curl -sS -X POST "https://higherdata.io/api/v1/tools/searches.delete?execute=false" \
  -H "Authorization: Bearer hd_example_replace_me" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "11111111-1111-4111-8111-111111111111"
}'

SDK

import { HigherData } from "higherdata-sdk";

const higherdata = new HigherData({
  apiKey: "hd_example_replace_me",
  apiUrl: "https://higherdata.io",
});

const result = await higherdata.call("searches.delete", {
  "id": "11111111-1111-4111-8111-111111111111"
}, { execute: false });

Example

{
  "input": {
    "id": "11111111-1111-4111-8111-111111111111"
  },
  "output": {
    "executed": false,
    "affected": 1,
    "name": "Canadian companies"
  }
}