delete_sp_list_item() deletes a single SharePoint list item and
delete_sp_list_items() deletes multiple SharePoint list items. Set
confirm = FALSE to use without interactive confirmation.
Usage
delete_sp_list_item(
item_id = NULL,
sp_list_item = NULL,
...,
list_name = NULL,
list_id = NULL,
sp_list = NULL,
site_url = NULL,
site = NULL,
confirm = TRUE,
call = caller_env()
)
delete_sp_list_items(
item_id = NULL,
...,
sp_list = NULL,
filter = NULL,
confirm = TRUE,
.progress = TRUE
)Arguments
- item_id
ID value for list item or items to delete.
- sp_list_item
Optional. A SharePoint list item object to delete.
- ...
Additional parameters passed to
get_sp_site()orMicrosoft365R::get_sharepoint_site().- list_name, list_id
SharePoint List name or ID string.
- sp_list
A
ms_listobject. If supplied,list_name,list_id,site_url,site,drive_name,drive_id,drive, and any additional parameters passed to...are all ignored.- site_url
A SharePoint site URL in the format "https://[tenant name].sharepoint.com/sites/[site name]". Any SharePoint item or document URL can also be parsed to build a site URL using the tenant and site name included in the URL.
- site
A
ms_siteobject. Ifsiteis supplied,site_url,site_name, andsite_idare ignored.- confirm
If
TRUE(default), user confirmation is required to delete items.- call
The execution environment of a currently running function, e.g.
caller_env(). The function will be mentioned in error messages as the source of the error. See thecallargument ofabort()for more information.- filter
A string with an OData expression apply as a filter to the results. Learn more in the Microsoft Graph API documentation on using filter query parameters.
- .progress
Whether to show a progress bar. Use
TRUEto turn on a basic progress bar, use a string to give it a name, or see progress_bars for more details.