---
title: "Delete rule"
method: DELETE
path: "/ai-gateway/rules"
tags: ["ai-gateway"]
---

# Delete rule

`DELETE /ai-gateway/rules`

## Request

- Base URL: `https://api.vercel.com`
- URL: `https://api.vercel.com/ai-gateway/rules`
- Auth: HTTP bearer

Delete a routing rule (soft delete)

## Query parameters

- `ruleId` string, required
- `teamId` string
- `slug` string

## Response `204`

- unknown

## Other responses

- `400`: One of the provided values in the request query is invalid.
- `401`: The request is not authorized.
- `403`: You do not have permission to access this resource.
- `404`
- `410`
- `500`

## Changes

- **2026-09-30** `6f68095b42b1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/vercel/apis/api/changes/ai-gateway/rules/delete.md)

---

[API](https://skmtc.dev/vercel/apis/api.md) - [All operations](https://skmtc.dev/vercel/apis/api/llms.txt) - [OpenAPI document](https://skmtc.dev/vercel/apis/api/revisions/4a06e85c2848?raw)
