remove_file
Deletes a specified file or directory from a remote agent using the AdaptixC2 framework. Provide the agent ID and path to remove the target.
Instructions
Remove a file or folder on the agent. Usage: rm Arguments: path : STRING (required) — Path to file or directory to remove. Example: rm C:\Temp\file.txt
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": {
"agent_id": "<agent_id>",
"path": "<path>"
},
"name": "remove_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | ||
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |