---
updatedAt: 2026-10-25T15:46:36.000Z
agentTools:
  projectIndex: https://docs.superwise.ai/llms.txt
---

# Delete Guardrail

Delete a guardrail.

Deletes a guardrail by its ID. A deleted guardrail cannot be restored, and every agent that uses it loses its guardrail configuration.

## When to use it

Use it only to remove a guardrail for good. To retire it and keep the option to restore it, use [Archive a guardrail](https://docs.superwise.ai/reference/archive_guardrail).

## Required parameters

* `guardrail_id` (path): the ID of the guardrail.

## Example request

Delete the guardrail `GUARDRAIL_ID` for good:

```bash
curl -X DELETE "https://api.superwise.ai/v1/guardrails/GUARDRAIL_ID" \
  -H "Authorization: Bearer YOUR_TOKEN"
```

Replace `YOUR_TOKEN` with a bearer token. [Creating a bearer token](https://docs.superwise.ai/reference/getting-started-with-your-api) shows how to get one from the client ID and secret key you create in [Generate access token](https://docs.superwise.ai/docs/generate-tokens). Before you run it, check which agents use the guardrail, since each of them loses its guardrail configuration.

## Response

A successful call returns `204 No Content` with an empty body.

**Related:** [Archive a guardrail](https://docs.superwise.ai/reference/archive_guardrail), [Run a bulk action on guardrails](https://docs.superwise.ai/reference/guardrail_bulk_action), [List guardrails](https://docs.superwise.ai/reference/get_guardrails)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "paths": {
    "/v1/guardrails/{guardrail_id}": {
      "delete": {
        "tags": [
          "Guardrails"
        ],
        "summary": "Delete Guardrail",
        "description": "Delete a guardrail.",
        "operationId": "delete_guardrail",
        "parameters": [
          {
            "name": "guardrail_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid4",
              "title": "Guardrail Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    }
  },
  "info": {
    "title": "Superwise Main Entities",
    "description": "API reference",
    "version": "0.1.0"
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "implicit": {
        "type": "oauth2",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://authentication.superwise.ai/identity/resources/auth/v1/api-token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "implicit": []
    }
  ],
  "servers": [
    {
      "url": "api.superwise.ai",
      "description": "Superwise Api Gateway"
    }
  ]
}
```