---
updatedAt: 2026-07-26T12:14:01.000Z
agentTools:
  siteIndex: https://docs.jfrog.com/llms.txt
  projectIndex: https://docs.jfrog.com/security/llms.txt
---

# Delete a custom condition

Delete a custom condition. Built-in conditions cannot be deleted.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Curation REST APIs",
    "description": "Public REST API for JFrog Curation — policy-based governance of open-source\npackages flowing through JFrog Artifactory remote repositories.\n\nCuration lets you define **conditions** (e.g. \"package has a critical CVE\")\nand attach them to **policies** that either block or audit (dry-run)\nnon-compliant packages. **Waiver requests** allow users to request\nunblocking of a package, and the **audit** endpoint provides full export of\nall approved/blocked events.\n",
    "version": "1.0.0",
    "license": {
      "name": "Proprietary"
    },
    "contact": {
      "name": "JFrog"
    }
  },
  "servers": [
    {
      "url": "{protocol}://{host}:{port}/xray",
      "description": "JFrog Platform (Xray service)",
      "variables": {
        "protocol": {
          "default": "https",
          "enum": [
            "http",
            "https"
          ]
        },
        "host": {
          "default": "localhost"
        },
        "port": {
          "default": "8046"
        }
      }
    }
  ],
  "security": [],
  "tags": [
    {
      "name": "Conditions",
      "description": "Condition templates and custom conditions used by policies."
    }
  ],
  "paths": {
    "/api/v1/curation/conditions/{condition_id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ConditionId"
        }
      ],
      "delete": {
        "operationId": "deleteCondition",
        "tags": [
          "Conditions"
        ],
        "summary": "Delete a custom condition",
        "description": "Delete a custom condition. Built-in conditions cannot be deleted.",
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "ConditionId": {
        "name": "condition_id",
        "in": "path",
        "required": true,
        "description": "Unique identifier of the condition.",
        "schema": {
          "type": "string"
        }
      }
    },
    "responses": {
      "NotFound": {
        "description": "Resource not found.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Error message."
          }
        }
      }
    }
  }
}
```