Skip to main content

Delete File or Folder

Description

Delete File or Folder plugin step deletes a Document Library from the specified site in SharePoint Online.

Prerequisites

You require the following permissions for app on Azure:

Account TypePermission typePermission (from least to most privileged)
Work or School accountDelegatedFiles.ReadWrite, Files.ReadWrite.All, Sites.ReadWrite.All

Configuration

No.Field NameDescription
1Step NameSpecify the name of the step. This name has to be unique in a single workflow. This is a mandatory field.
Connection:
2Client IDSpecify the Client ID of SharePoint App. For information about creating a client ID, see Appendix: SharePoint: App Registration & Refresh Token Generation.
The field data type is String. This is a mandatory field.
3Accept value as variable/staticSelect the checkbox if you want to enter the Refresh Token name in the Refresh Token field.
If you do not select the checkbox, then you can select the refresh token in the Refresh Token field.
4Refresh TokenSpecify or select the Refresh Token generated using Client ID, which is generated after creating App in Azure AD. This is a mandatory field.
5Test ConnectionVerifies whether the connection is established or not.
Note: This connection will not work for the previous step variables. The button will only work with static values and environment variables.

Input Tab

No.Field NameDescription
Input Fields:
1Site Relative URLSelect the SharePoint site-relative URL. {Tenant Name}.sharepoint.com:/{SharePoint Site Path}
Example: firstUser.sharepoint.com:/sites/TestingSite
This is a mandatory field.
Note: For root site (Communication Site), no need to give {SharePoint Site Path}.
2Document Library NameSelect the name of the Document Library in which to perform the operation. This is a mandatory field.
3File Or Folder PathSelect the path of the file or folder to be deleted (from the root of the Document Library).
Example: 'Folder1/Folder2' or 'Folder1/Example.txt'. This is a mandatory field.