SharePoint Online - Delete items
Use the SharePoint Online - Delete items action A tool for building the processes, logic, and direction within workflows. Actions are the steps the workflow performs to complete a process. to delete items from a SharePoint Online list.
For more information about the SharePoint Online connector, go to SharePoint Online.
Configure the SharePoint Online - Delete items action
Important: Before inserting variables in the action configuration, you must manually type or select the values and populate other dependent fields in order to retrieve the output data. Once configured, you can insert variables to the required fields.
-
Add the action to the workflow and open the action configuration panel. For more information, see Add an action to the workflow.
- Select a Connection. If you do not have a connection, see Add a connection.
Only the connections created with the List and libraries authentication method are available in the drop-down list. For more information, see Connectors.
- Type a SharePoint site URL and click Retrieve lists.
Example: https://domain.sharepoint.com/sites/hr
All the lists in the specified site are displayed in the List name field drop-down list.
- Select the List name that has the item you want to delete.
- Select the Delete type.
SharePoint Online - Delete items actions fields and settings
Important: Before inserting variables in the action configuration, you must manually type or select the values and populate other dependent fields in order to retrieve the output data. Once configured, you can insert variables to the required fields.
Section | Field | Description | Variable types |
---|---|---|---|
(unlabeled) |
SharePoint Online connection to connect to the SharePoint Online site that contains the list from which you want to delete items. To refresh the available connections, click . |
(n/a) | |
Items to delete |
SharePoint site URL |
The URL of the SharePoint Online site that has the list or document library you want to use. To retrieve the lists for the SharePoint site URL, type the SharePoint site URL and click Retrieve lists. Example: https://domain.sharepoint.com/sites/hr |
Text, Decimal, Integer, Boolean, DateTime, Collection |
List name |
The list in the selected site that you want to delete items from. The lists and document libraries within the site specified in SharePoint site URL are displayed in the drop-down list. |
Text, Decimal, Integer, Boolean, DateTime, Collection |
|
Delete type |
Select the delete type:
|
(n/a) | |
Conditions | Add conditions/Edit conditions |
Add conditions to select which items to delete. Only the items that match the conditions are deleted. Note: For conditions involving columns with multiple values, you need to create conditions for each available value and select And or Or options accordingly. Displays the condition builder to define new conditions or edit existing conditions.
The Condition builder supports nested conditions, enabling you to create conditions within another condition. |
(n/a) |
Condition builder | When |
Displays the items from the Column field of the selected list. Note:
The following columns are not supported in the Condition builder:
|
Text, Decimal, Integer, Boolean, DateTime, Collection |
Operator |
How the item from the When drop-down and Value are compared. Select from the drop-down. The operators available in the drop-down depend on the data type of the item selected from the When drop-down. |
(n/a) | |
Value |
The value you are expecting in the column (field) specified for When. The data type of Value must match the data type of the item selected in the When drop-down. |
(varies) | |
Add |
Adds a new condition. When adding a new condition you have to select the level of the condition. Select Nested condition to nest the new condition within the condition above it. |
(n/a) | |
And/Or |
The connecting operator to use for the conditions. If you select: And: The workflow starts when the item that is added matches all the conditions. Or: The workflow starts when the item that is added matches any one of the conditions. |
(n/a) | |
Displays the following options menu for a condition. The following options are available:
|
(n/a) | ||
Output | Result |
Stores the result of the action in an object with the following variables:
|
Object |