{"type":"api","title":"Task Delete","meta":{"id":"/apps/pubhub/media/cisco-catalyst-sd-wan-api-guide-20-18/1c4807bcb76af36988ebb37dc2e455b1787a155e/d2f02ba2-fd0d-3a26-bcc5-feafc8f24d17","info":{"title":"Monitoring and Troubleshooting","description":"Includes API operations for the following:\n- Real-time monitoring\n- Accessing statistics APIs and statistics bulk APIs\n- Retrieving device state\n- Managing alarms and events\n","contact":{"email":"vmanage@cisco.com"},"version":"20.18 - 2025-08-15"},"openapi":"3.1.0","servers":[{"url":"/dataservice"}]},"spec":{"tags":["Troubleshooting Tools - Network Wide Path Insight"],"description":"Delete Auto On Task","operationId":"taskDelete","parameters":[{"name":"taskId","in":"path","description":"taskId","required":true,"schema":{"type":"string","example":"2"}},{"name":"taskStartTime","in":"query","description":"task start time","schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string"},"message":{"type":"object","properties":{"duration":{"type":"string"},"entry_time":{"type":"integer","format":"int64"},"events":{"type":"string"},"expire-time":{"type":"integer","format":"int64"},"message":{"type":"string"},"sites":{"type":"string"},"state":{"type":"string"},"taskId":{"type":"integer","format":"int32"},"taskName":{"type":"string"},"traces":{"type":"boolean"}},"$$ref":"#/components/schemas/TasksDeleteResponsePayloadMessage"},"taskId":{"type":"string"}},"description":"Auto on task schema for DELETE response","$$ref":"#/components/schemas/TasksDeleteResponsePayload"},"examples":{"Delete task response":{"description":"Delete task response","value":{"action":"success","taskId":"2"}}}}}},"400":{"description":"Bad Request"},"403":{"description":"Forbidden"},"500":{"description":"Internal Server Error"}},"x-roles-required":"Device Monitoring-write","method":"delete","path":"/stream/device/nwpi/tasks/delete/{taskId}"}}