unit_file_remove_tool
Remove a systemd unit file: stop and disable the unit, back up its file, optionally mask it, and then delete. Protected units are refused to keep critical services safe.
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 | |||