Delete Document Library or List
Description
This step deletes a document library from a SharePoint Online site. You provide the site URL and the library name. Use this step in workflows that clean up unused libraries, remove temporary storage after project completion, or automate site maintenance.
Prerequisites
You require the following permissions for app on Azure:
| Account Type | Permission type | Permission (from least to most privileged) |
|---|---|---|
| Work or School account | Delegated | Sites.Manage.All, Sites.FullControl.All |
Configuration
| No. | Field Name | Description |
|---|---|---|
| 1 | Step Name | Specify the name of the step. This name must be unique in a single workflow. This field is mandatory. |
| Connection | ||
| 2 | Client ID | Specify the Client ID of the SharePoint app. For information about creating a Client ID, see Appendix: SharePoint: App Registration & Refresh Token Generation. Data type: String. This field is mandatory. |
| 3 | Accept value as variable/static | Select the checkbox if you want to enter the refresh token name in the Refresh Token field. If the checkbox is not selected, you can select the refresh token from a list in the Refresh Token field. |
| 4 | Refresh Token | Specify or select the refresh token generated using the Client ID after app registration in Azure AD. This field is mandatory. |
| 5 | Test Connection | Verifies whether the connection is established. Note: This button will not work for previous step variables. It only works with static values and environment variables. |