ssh_file_delete_line_by_content
Deletes a line matching specific content from a remote file via SSH. Specify file path and exact line content to remove.
Instructions
Delete a line matching a unique content string.
Returns: Dictionary with operation status
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the file to modify | |
| match_line | Yes | Exact line content to match and delete | |
| use_sudo | No | Use sudo for the operation | |
| force | No | Force operation even if file can't be read (sudo only) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||