SharePoint Online - Delete List Item

Overview

The SharePoint Online - Delete List Item Snap deletes a list item from the SharePoint Online site.



  • This is a Write-type Snap.
  • Works in Ultra Tasks. However, we recommend that you do not use this Snap in an Ultra Pipeline.

Prerequisites

  • Valid SharePoint Online tenant and associated site.
  • Valid Azure application with all the required API permissions.

Snap views

Type Description Examples of upstream and downstream Snaps
Input

This Snap has at most one document input view.

An input document contains the metadata of the list item to be deleted.

Output

This Snap has exactly one document output view.

An output document contains the response after the delete operation. If successful, the Snap returns a 204 No Content response to indicate that the resource was deleted and there was nothing to return.

Learn more about Error handling.

Snap settings

Note: Learn about the common controls in the Snap settings dialog.
Field/Field set Description
Label*

String

Specify a unique name for the Snap. Modify this to be more appropriate, especially if more than one of the same Snaps is in the pipeline.

Default value: SharePoint Online - Delete List Item

Example: SharePoint Online - Delete List Item

Site*

String/Expression
Specify the name of a site which contains the list of document library to be used in the subsequent Snap settings.

Default value: N/A

Example: MySite

Custom Site Path

Checkbox
Enable this option if your site URL contains a custom path that deviates from the default site URL. Default site path always has the prefix ‘site/’ before the sitename, a custom site can contain the prefix ‘team/’ or it can have no prefix.

Default value: Deselected

List Name*

String/Expression
Specify the name of the list. This field suggests all the lists that belong to the SharePoint Online site.
Note: If you enable the Site property as an expression, then the document library is not suggested, resulting in an exception.

Default value: N/A

Example: DemoList

Item ID*

String/Expression
Enter the item ID to delete the list item.

Default value: N/A

Example: ADDS44262GGGATs53

Connection details Use this field set to specify connection properties to the SharePoint Online APIs.
Connection Timeout*

Integer
Specify the connection timeout duration in seconds.

Default value: 30

Example: 40

Number of Retries*

Integer
Specify the maximum number of reconnections in case of a connection failure or timeout.

Default value: 0

Example: 5

Retry Interval (seconds)*

Integer
Specify the time interval in seconds between connection attempts.

Default value: 1

Example: 11

Snap execution

Dropdown list
Choose one of the three modes in which the Snap executes. Available options are:
  • Validate & Execute. Performs limited execution of the Snap and generates a data preview during pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during pipeline runtime.
  • Execute only. Performs full execution of the Snap during pipeline execution without generating preview data.
  • Disabled. Disables the Snap and all Snaps that are downstream from it.

For more information on how to delete a list item in SharePoint Online, refer to the graph API in List Item-Delete.

Troubleshooting

Error Cause Resolution
The specified listName/itemId was not found Entered listname/itemId might not be available in the site. Click the suggestion drop-down button and select the listName or enter the existing list name manually or verify the itemId entered exists.
Forbidden exception Either user or app doesn’t have sufficient permissions to read the metadata for the document library. Ensure to provide the desired permissions both at the user and application level.