Unit File Remove Tool
unit_file_remove_toolStops, disables, optionally masks, backs up, and removes a systemd unit file to decommission it safely.
Instructions
Decommission a unit: stop, disable, optionally mask, back up and remove its file.
Refused for units on the protected list. Best-effort on stop/disable — a unit that's already stopped or was never enabled doesn't block file removal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mask | No | Also mask the unit so nothing can start it again by mistake | |
| unit_name | Yes | Bare unit file name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||