file_absent

Remove a file if it exists.

⚙️ Compatible targets: Linux, Windows

Parameters

NameDocumentation
pathFile to remove (absolute path on the path node).

This parameter is required.

Outcome conditions

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

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

Example

method: file_absent
params:
  path: VALUE