Skip to main content

Delete Question

Deletes a question from a Google Form at a specified position.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.

Inputs

  • Form Id - The unique identifier of the Google Form from which the question should be deleted.
  • Index - The position (1-based) of the question to be deleted from the form.

How It Works

The Delete Question node removes a question from an existing Google Form at the specified position. When executed, the node:

  1. Validates the required inputs (Form Id and Index)
  2. Retrieves the Google Form using the provided Form Id
  3. Validates the index position (must be greater than 0)
  4. Constructs a request to delete the item at the specified index position
  5. Uses the Google Forms API to remove the question from the form
  6. The form is updated with the question removed

Requirements

  • A valid Google Forms form ID
  • Appropriate permissions to modify the form
  • Valid index position (must be greater than 0 and refer to an existing question)

Error Handling

The node will return specific errors in the following cases:

  • Empty or invalid Form Id
  • Empty or invalid Index
  • Invalid Index value (0 or negative)
  • Google Forms API errors during question deletion
  • Insufficient permissions to modify the form
  • Index refers to a position that doesn't exist in the form

Usage Notes

  • The Index is 1-based, meaning position 1 is the first question in the form
  • Deleting a question shifts all subsequent questions to lower positions
  • This operation cannot be undone through the API
  • Make sure the index refers to an existing question in the form
  • All responses associated with the deleted question will also be removed
  • Consider using caution with this node, especially in production environments