---
title: "Delete a Custom API"
method: DELETE
path: "/custom"
tags: ["Custom"]
---

# Delete a Custom API

`DELETE /custom`

Delete definitions of existing Custom APIs for a given URL pattern and API on your token

## Request body

- object
  - `api` string — The specific API being targeted. Always precede the API name with "/api/" as in `"/api/article"` except for "all")
  - `urlPattern` string — A regex that defines the URLs corresponding to which the Custom API definitions will be deleted. Make sure that is json-escaped before url-encoding it.
  - `token` string — Your token. The Custom API definitions only for this token will be deleted

## Response `200`

Successful API Response

- object
  - `token` string
  - `urlPattern` string
  - `api` string
  - `status` string

## Other responses

- `500` — Internal Server Error

---

[API](https://skmtc.dev/diffbot/apis/web-search.md) · [All operations](https://skmtc.dev/diffbot/apis/web-search/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/diffbot/web-search/revisions/8b88d7dabe63/schema)
