Skip to main content

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​

InputTypeRequiredDefaultWhat it is
PathFileYesFolder path.
RecursiveBooleanNofalseAlso delete everything inside.
Larger than (KB)NumberNoOnly when the folder holds more than this many KB in all its files, at any depth (1 KB = 1024 bytes).
Smaller than (KB)NumberNoOnly when the folder holds less than this many KB in all its files, at any depth.
Modified afterDateTimeNoOnly when the folder itself was last changed after this date and time (local time); adding or removing an item directly inside changes it.
Modified beforeDateTimeNoOnly when the folder itself was last changed before this date and time (UTC, like every DateTime; Text to date converts local times).

Outputs​

OutputTypeWhat it is
deletedBooleanTrue when the folder was deleted; false when it did not exist or did not meet the limits.