directory_absent

Ensure a directory's absence.

⚙️ Compatible targets: Linux, Windows

Parameters

NameDocumentation
pathDirectory to remove.

This parameter is required.
recursiveShould deletion be recursive, "true" or "false" (defaults to "false").

This parameter is optional.

Outcome conditions

You need to replace ${path} with its actual canonified value.

  • ✅ Ok: directory_absent_${path}_ok
    • ☑️ Already compliant: directory_absent_${path}_kept
    • 🟨 Repaired: directory_absent_${path}_repaired
  • ❌ Error: directory_absent_${path}_error

Example

method: directory_absent
params:
  recursive: OPTIONAL_VALUE
  path: VALUE

Documentation

If recursive is false, only an empty directory can be deleted.