Actions16
Folder → Delete
AI-generatedSummary
Delete a folder
Inputs
- driveType — Type of drive to access
- sharedLinkUrl (required) — Paste the sharing link of the shared folder (right-click → Share → Copy link in OneDrive/SharePoint)
- userId — User email or ID. If empty, uses the authenticated user.
- siteId (required) — The SharePoint site to access
- folderSharingUrl (required) — Paste the sharing link copied from OneDrive or SharePoint ("Share → Copy link")
- folderSelection — How to specify the folder
- browseFolderF1 (required) — Choose from the list, or specify an ID using an expression
- browseFolderF2 — Select a subfolder to go deeper, or leave as is to use Level 1 as the target. Choose from the list, or specify an ID using an expression.
- browseFolderF3 — Select a subfolder to go deeper, or leave as is to use Level 2 as the target. Choose from the list, or specify an ID using an expression.
- browseFolderF4 — Select a subfolder to go deeper, or leave as is to use Level 3 as the target. Choose from the list, or specify an ID using an expression.
- browseFolderF5 — Select the deepest target folder here, or leave as is to use Level 4 as the target. Choose from the list, or specify an ID using an expression.
- folderPath (required) — The folder to operate on
- folderId (required) — The unique ID of the folder. Use "root" for the root folder.
Output shape
object indicating success (e.g., { success: true })
On error the operation throws; if continueOnFail is enabled it may return an error object.
Examples
Example 1: Delete a folder by its ID
driveType=user, folderId='123abc', folderSelection=id
Example 2: Delete a folder using a shared link
driveType=sharedLink, sharedLinkUrl='https://1drv.ms/f/abc', folderId='root', folderSelection=id
Example 3: Delete a folder via its path
driveType=user, folderPath='/Documents/OldFolder', folderSelection=path