Delete folder
Delete a folder, optionally only when its total size or its last-change date meets limits. Non-empty folders are deleted only when recursive is true.
Command in the Folder toolkit · id ooa.folder/delete · 6 inputs (1 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Path | File | Yes | Folder path. | |
| Recursive | Boolean | No | false | Also delete everything inside. |
| Larger than (KB) | Number | No | Only when the folder holds more than this many KB in all its files, at any depth (1 KB = 1024 bytes). | |
| Smaller than (KB) | Number | No | Only when the folder holds less than this many KB in all its files, at any depth. | |
| Modified after | DateTime | No | Only when the folder itself was last changed after this date and time (local time); adding or removing an item directly inside changes it. | |
| Modified before | DateTime | No | Only when the folder itself was last changed before this date and time (UTC, like every DateTime; Text to date converts local times). |
Outputs
| Output | Type | What it is |
|---|---|---|
| deleted | Boolean | True when the folder was deleted; false when it did not exist or did not meet the limits. |