Unit File Remove Tool
unit_file_remove_toolDecommission a systemd unit by stopping, disabling, optionally masking, backing up, and removing its file; skips protected units and tolerates already-stopped states.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"unit_name": "<unit_name>"
},
"name": "unit_file_remove_tool"
}
}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 | |||