# /smartlists/{smartListId}/options/{optionId}

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Formstack API v2025.0",
    "version": "0.0.4"
  },
  "servers": [
    {
      "url": "https://www.formstack.com/api/v2025",
      "description": "Production server"
    },
    {
      "url": "https://staging-formstack.com/api/v2025",
      "description": "Staging server"
    },
    {
      "url": "https://dev-formstack.com/api/v2025",
      "description": "Development server"
    }
  ],
  "paths": {
    "/smartlists/{smartListId}/options/{optionId}": {
      "delete": {
        "tags": [
          "Smart List Options"
        ],
        "operationId": "deleteSmartListOption",
        "parameters": [
          {
            "name": "smartListId",
            "in": "path",
            "description": "ID of the smart list",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "optionId",
            "in": "path",
            "description": "ID of the option to delete",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Option deleted successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceIdDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "SmartList or option not found"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ResourceIdDto": {
        "title": "Resource Identifier",
        "description": "Contains the identifier of a resource after an operation",
        "properties": {
          "id": {
            "description": "The identifier of the resource",
            "type": "integer",
            "format": "int64",
            "example": 1
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    {
      "name": "Smart List Options",
      "description": "Smart List Options are the individual entries that make up a Smart List. Use these endpoints to list a smart list's options, add, retrieve, update, and delete an option, clear all of a list's options, bulk-add a set of options to a list, and upload or remove an option's image."
    }
  ]
}
```