SharePoint delete file action

Use the Delete file action to delete a file in the specified path in your SharePoint site.

Prerequisites

Ensure that you are authenticated before initiating any SharePoint action. For more details, see SharePoint authenticate action.

Procedure

  1. From the Actions pane, select SharePoint > Folder and file > Delete file and place it in the canvas.SharePoint Delete Action
  2. In the Site field, select one of the following options:
    • Default site: The site name used during authentication is considered the default site.
    • Other site: If you want to choose a different site, specify the different site name.
  3. In the File path field, specify the folder path followed by the file name.
  4. In the Session field, select one of the following options:
    • Session name: The name you provided for the session during authentication.
    • Variable: Select a variable which contains the session name.
The specified file is deleted from the folder.