Skip to main content

Delete SharePoint list

Delete a SharePoint list or library with its items; it goes to the site's recycle bin.

Command in the Microsoft 365 toolkit · id ooa.microsoft365/delete_list · 5 inputs (1 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialNoMicrosoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. Not needed with a SharePoint site session.
SiteStringNoSharePoint site: site id, or hostname:/sites/path such as contoso.sharepoint.com:/sites/Finance.
ListStringYesList id or display name.
Endpoint addressStringNohttps://graph.microsoft.com/v1.0Graph endpoint; change only for national clouds or testing.
SessionStringNoA SharePoint site signed in to with Sign in to SharePoint site (also on premises); when given, access_token and site are not used (G3).