# /forms/{formId}/submitactions/{submitActionId}

Permanently remove a submit action from a form

# 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": {
    "/forms/{formId}/submitactions/{submitActionId}": {
      "delete": {
        "tags": [
          "Submit Actions"
        ],
        "description": "Permanently remove a submit action from a form",
        "operationId": "deleteSubmitAction",
        "parameters": [
          {
            "name": "formId",
            "in": "path",
            "description": "Unique identifier of the form that contains the submit action",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "submitActionId",
            "in": "path",
            "description": "Unique identifier of the submit action to delete",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Submit action deleted successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceIdDto"
                }
              }
            }
          },
          "403": {
            "description": "Access denied - insufficient permissions"
          },
          "404": {
            "description": "Submit action or form not found"
          },
          "500": {
            "description": "Internal server error during submit action deletion"
          }
        }
      }
    }
  },
  "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": "Submit Actions",
      "description": "Submit actions define what happens after a form is submitted—standard processing, displaying a custom message, redirecting to a URL, or running a third-party integration such as WebMerge. Use these endpoints to list a form's submit actions and to create, retrieve, update, and delete them, including the conditional logic that controls when each action runs."
    }
  ]
}
```