POST /automation/delete
Remove a finished JavaScript job and its execution artifacts.
This is a device HTTP route. Set DEVICE_URL to your reachable device URL; connection and examples explain how. Do not append this path to the public MCP URL.
Parameters
| Parameter | Type | Meaning |
|---|---|---|
runId | JSON string | ID of a finished retained job. |
Response
JSON {runId,deleted:true}.
Example
sh
curl --fail-with-body "$DEVICE_URL/automation/delete" \
-H 'Content-Type: application/json' \
-d '{"runId":"RUN_ID"}'Notes
Active jobs cannot be deleted. The original saved script is preserved. Read logs and results before deleting.
Check the HTTP status and any JSON error. HTTP workflows and error handling explain shared limits. All endpoints.