---
agentTools:
  projectIndex: https://cmai.readme.io/llms.txt
---

# Delete a Custom-Widget text entity

Delete a Custom-Widget text entity.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "version": "1.3.39",
    "title": "Conversion Maker AI API",
    "termsOfService": "https://conversionmaker.ai/agb/",
    "description": "This is the public API description of Conversion Maker AI. A project with an active plan is required to use the API. The API Key and the ID of the project can be found in the project settings.\n",
    "contact": {
      "email": "helpdesk@conversionmaker.ai",
      "name": "Conversion Maker AI",
      "url": "https://conversionmaker.ai"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    }
  },
  "servers": [
    {
      "url": "https://app.conversionmaker.ai/api/v1",
      "description": "production"
    },
    {
      "url": "https://app.stage.conversionmaker.ai/api/v1",
      "description": "preview"
    },
    {
      "url": "http://localhost:3000/api/v1",
      "description": "development"
    }
  ],
  "paths": {
    "/custom-widget-texts/{customWidgetTextId}": {
      "delete": {
        "tags": [
          "Custom-Widget Texts"
        ],
        "summary": "Delete a Custom-Widget text entity",
        "description": "Delete a Custom-Widget text entity.",
        "operationId": "deleteCustomWidgetText",
        "parameters": [
          {
            "$ref": "#/components/parameters/projectId"
          },
          {
            "$ref": "#/components/parameters/customWidgetTextId"
          }
        ],
        "responses": {
          "204": {
            "$ref": "#/components/responses/204"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "402": {
            "$ref": "#/components/responses/402"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "405": {
            "$ref": "#/components/responses/405"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "parameters": {
      "projectId": {
        "name": "projectId",
        "in": "query",
        "description": "The project ID",
        "required": true,
        "example": "6282171639dac8dfb01c44a0",
        "schema": {
          "type": "string",
          "minLength": 24,
          "maxLength": 24
        }
      },
      "customWidgetTextId": {
        "name": "customWidgetTextId",
        "in": "path",
        "description": "The ID of the Custom-Widget Text",
        "required": true,
        "example": "6282171639dac8dfb01c44a0",
        "schema": {
          "type": "string",
          "minLength": 24,
          "maxLength": 24
        }
      }
    },
    "responses": {
      "204": {
        "description": "No Content"
      },
      "400": {
        "description": "Bad Request",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "status",
                "message",
                "code"
              ],
              "properties": {
                "status": {
                  "type": "integer",
                  "description": "The response status code",
                  "example": 400
                },
                "message": {
                  "type": "string",
                  "description": "The response status message",
                  "example": "Bad Request"
                },
                "code": {
                  "type": "integer",
                  "description": "The internal error code",
                  "example": 1669810156
                },
                "data": {
                  "type": "object",
                  "description": "Any additional information regarding the error"
                }
              }
            }
          }
        }
      },
      "401": {
        "description": "Unauthorized",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "status",
                "message",
                "code"
              ],
              "properties": {
                "status": {
                  "type": "integer",
                  "description": "The response status code",
                  "example": 401
                },
                "message": {
                  "type": "string",
                  "description": "The response status message",
                  "example": "Unauthorized"
                },
                "code": {
                  "type": "integer",
                  "description": "The internal error code",
                  "example": 1669810156
                }
              }
            }
          }
        }
      },
      "402": {
        "description": "Payment required",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "status",
                "message",
                "code"
              ],
              "properties": {
                "status": {
                  "type": "integer",
                  "description": "The response status code",
                  "example": 402
                },
                "message": {
                  "type": "string",
                  "description": "The response status message",
                  "example": "Payment required"
                },
                "code": {
                  "type": "integer",
                  "description": "The internal error code",
                  "example": 1669810156
                }
              }
            }
          }
        }
      },
      "403": {
        "description": "Forbidden",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "status",
                "message",
                "code"
              ],
              "properties": {
                "status": {
                  "type": "integer",
                  "description": "The response status code",
                  "example": 403
                },
                "message": {
                  "type": "string",
                  "description": "The response status message",
                  "example": "Forbidden"
                },
                "code": {
                  "type": "integer",
                  "description": "The internal error code",
                  "example": 1669810156
                }
              }
            }
          }
        }
      },
      "404": {
        "description": "Not Found",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "status",
                "message",
                "code"
              ],
              "properties": {
                "status": {
                  "type": "integer",
                  "description": "The response status code",
                  "example": 404
                },
                "message": {
                  "type": "string",
                  "description": "The response status message",
                  "example": "Not Found"
                },
                "code": {
                  "type": "integer",
                  "description": "The internal error code",
                  "example": 1669810156
                }
              }
            }
          }
        }
      },
      "405": {
        "description": "Method not allowed",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "status",
                "message",
                "code",
                "data"
              ],
              "properties": {
                "status": {
                  "type": "integer",
                  "description": "The response status code",
                  "example": 405
                },
                "message": {
                  "type": "string",
                  "description": "The response status message",
                  "example": "Method not allowed"
                },
                "code": {
                  "type": "integer",
                  "description": "The internal error code",
                  "example": 1669810156
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "allowedMethods": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "description": "The allowed HTTP request methods",
                        "example": "POST"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "429": {
        "description": "Too many requests",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "status",
                "message",
                "code"
              ],
              "properties": {
                "status": {
                  "type": "integer",
                  "description": "The response status code",
                  "example": 429
                },
                "message": {
                  "type": "string",
                  "description": "The response status message",
                  "example": "Too many requests"
                },
                "code": {
                  "type": "integer",
                  "description": "The internal error code",
                  "example": 1669810156
                }
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    }
  },
  "externalDocs": {
    "url": "https://cmai.readme.io/"
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 106,
      "1": 130,
      "2": 200,
      "3": 239,
      "4": 192,
      "5": 46,
      "6": 118,
      "7": 90,
      "8": 69,
      "9": 252,
      "10": 178,
      "11": 217
    }
  }
}
```