Delete a Drive folder
The "Delete a Drive folder" robot deletes a Drive folder with all its contents by its ID in Bitrix24 (Alaio) business processes and robots. By default the folder goes to the recycle bin; the Permanently flag erases it for good together with all nested files and subfolders. It returns a Success Y/N flag.
The robot deletes a Drive folder whole — with every file and nested subfolder, something that by hand takes rights and attention. The safe default sends the folder to the recycle bin; the Permanently mode destroys it finally and calls for care: recovery is impossible and the whole tree goes. Typical use cases: remove a temporary export folder after processing; delete the structure of a cancelled deal; purge old period folders on schedule. If the folder is not found, Success = N is returned. Use the returned Y/N flag in the condition of the next step of the business process.
What input parameters does the robot accept?
| Parameter | Type | Required? | Default |
|---|---|---|---|
| Drive folder ID | int | yes | |
| Permanently, bypassing the recycle bin (Y/N, default N) | string | — |
What does the robot return?
| Parameter | Type |
|---|---|
| Success (Y/N) | string |
Scenario: cleaning a temporary export folder
- A process finishes handling the export files
- The robot deletes the temporary folder with all contents (to the recycle bin)
- When Success = Y the process reports the cleanup as finished