Overview
This blueprint can be used to remove one or multiple files in OneDrive.
The match type selected greatly affects how this Blueprint works.
Variables
|
Name |
Reference |
Type |
Required |
Default |
Options |
Description |
|---|---|---|---|---|---|---|
|
Client ID |
ONEDRIVE_CLIENT_ID |
Password |
✅ |
- |
- |
The Client ID of the app created in Azure |
|
Client Secret |
ONEDRIVE_CLIENT_SECRET |
Password |
✅ |
- |
- |
The secret value of the app created in Azure |
|
Tenant |
ONEDRIVE_TENANT |
Alphanumeric |
✅ |
- |
- |
The ID of the tenant associated with the app |
|
User Email |
ONEDRIVE_USER_EMAIL |
Alphanumeric |
✅ |
- |
- |
The email of the user to impersonate. The user must belong to the organization/tenant |
|
File Match Type |
ONEDRIVE_FILE_MATCH_TYPE |
Select |
➖ |
exact_match |
Exact Match: exact_match
|
The match type used to identify files to load |
|
OneDrive Folder Name |
ONEDRIVE_SOURCE_FOLDER_NAME |
Alphanumeric |
➖ |
- |
- |
The name of the folder name where the source files reside. If omitted, the blueprint will look in the root directory |
|
OneDrive File Name |
ONEDRIVE_SOURCE_FILE_NAME |
Alphanumeric |
✅ |
- |
- |
The name of the file(s) to move/rename in OneDrive |
YAML
Below is the YAML template
source:
template: Microsoft OneDrive - Remove Files
inputs:
ONEDRIVE_CLIENT_ID:
ONEDRIVE_CLIENT_SECRET:
ONEDRIVE_TENANT:
ONEDRIVE_USER_EMAIL:
ONEDRIVE_FILE_MATCH_TYPE: exact_match
ONEDRIVE_SOURCE_FOLDER_NAME:
ONEDRIVE_SOURCE_FILE_NAME:
type: TEMPLATE
guardrails:
retry_count: 1
retry_wait: 0h0m0s
runtime_cutoff: 1h0m0s
exclude_exit_code_ranges:
- 180
- 181
- 182
- 183
- 184
- 200
- 202
- 203
- 204
- 205
- 206
- 207
- 208
- 209
- 210
- 249