---
agentTools:
  projectIndex: https://zerodev-api.readme.io/llms.txt
---

# Remove a policy

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "servers": [
    {
      "url": "https://public-api.zerodev.app"
    }
  ],
  "info": {
    "title": "ZeroDev API",
    "version": "1.0.1"
  },
  "paths": {
    "/v2/projects/{projectId}/chains/{chainId}/policies/{policyId}": {
      "parameters": [],
      "delete": {
        "tags": [
          "V2/Gas Sponsor Policies"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "jwtToken": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "chainId",
            "required": true,
            "schema": {
              "type": "number"
            }
          },
          {
            "in": "path",
            "name": "policyId",
            "required": true,
            "schema": {
              "type": "number"
            }
          }
        ],
        "summary": "Remove a policy",
        "description": "",
        "operationId": "removePolicyFromProjectV2",
        "responses": {
          "200": {
            "description": "Successfully removed policy",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/SomethingWentWrong"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "message": {
            "description": "Detailed error message",
            "type": "string"
          },
          "code": {
            "description": "Error Code",
            "type": "integer"
          }
        },
        "required": [
          "message",
          "code"
        ]
      }
    },
    "responses": {
      "SomethingWentWrong": {
        "description": "Something went wrong.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "message": "Something went wrong",
              "code": 0
            }
          }
        }
      }
    },
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      },
      "jwtToken": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "tags": [
    {
      "name": "V2/Gas Sponsor Policies"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 104,
      "1": 53,
      "2": 119,
      "3": 252,
      "4": 43,
      "5": 199,
      "6": 233,
      "7": 171,
      "8": 128,
      "9": 20,
      "10": 63,
      "11": 194
    }
  }
}
```