Delete Column - Other latest
Productivity Activities
Last updated Dec 6, 2023

Delete Column



Delete a specified column from a sheet or range. The column on the right of the deleted column is then shifted to the left.


This activity requires the following scopes:


Project compatibility

Windows | Cross-platform


  • Google Sheets connection - The connection for the Google Workspace account to use in the activity.
  • Spreadsheet - The target spreadsheet to delete columns from. Click the Folder icon to browse Google Drive folders and select a spreadsheet. This option accepts input as IResource. Use the Plus button menu to switch to Use variable or Url or ID input (String) modes.
    • Spreadsheet sample - Select a file with the same ranges as the variable file. The field is visible after clicking Use spreadsheet template. Browse the Google Drive folders and select a spreadsheet. In Studio Desktop, the option is available from the Plus button menu next to Range. This field accepts IResource input. To learn more, see Working with templates.
    • Spreadsheet URL - The URL or ID of the spreadsheet of interest. This field is available when Url or ID is selected as the input mode. This property supports String variables and string formatted values. For details, see How to retrieve spreadsheet IDs.
    • Select the Reload Browser option if you've modified your folders and need to retrieve the latest data.

  • Range - Indicates the range where to delete the column. You can write custom ranges using full A1 Notation, e.g., Sheet1C2:F10. This property supports String variables and string formatted values.
  • Has headers - If selected, the column headers are generated by reading the range header. Boolean value. Default value is set to True.
  • Column Name or Column Position - Specify a column or a column position to delete, e.g., "Transaction Date", "2". The first position is 0.
    • Update columns - Select this option if you've modified your sheet and need to retrieve the latest data.
  • Delete behavior - Indicates the delete mode.
    • Clear contents - Clear contents of the selected column.
    • Delete - Delete the selected column and shift cells left.
      Note: If the Clear option is selected:
      • If Has Headers is True: clears the content and excludes the header.
      • If Has Headers is False: clears the entire column, including the header.

      If you want to remove the header as well, use the Delete option.


  • Range information - The updated range information, after the column is deleted, stored in a RangeInformation variable.
  • Description
  • Project compatibility
  • Configuration
  • Example
Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2023 UiPath. All rights reserved.