MCPcopy
hub / github.com/omkarcloud/botasaurus / delete_task

Method delete_task

botasaurus_api/botasaurus_api/__init__.py:283–295  ·  view source on GitHub ↗

Deletes a specific task. :param task_id: The ID of the task to delete. :return: A success message.

(self, task_id)

Source from the content-addressed store, hash-verified

281
282
283 def delete_task(self, task_id):
284 """
285 Deletes a specific task.
286
287 :param task_id: The ID of the task to delete.
288 :return: A success message.
289 """
290 url = self._make_api_url(f"api/tasks/{task_id}")
291 response = requests.delete(url)
292 _raise_for_status(response)
293 response_data = response.json()
294 self._write_json("delete_task", response_data) # Call write_json with method name
295 return response_data
296
297 def delete_tasks(self, *task_ids):
298 """

Callers

nothing calls this directly

Calls 4

_make_api_urlMethod · 0.95
_write_jsonMethod · 0.95
_raise_for_statusFunction · 0.85
deleteMethod · 0.45

Tested by

no test coverage detected