scrapewise_delete_scraper_data
Permanently removes all scraped rows from the customer's group MongoDB collection
that were produced by the given scraperJobStatusId. The scraper config and the
scraperJobStatus record itself are preserved — only the actual scraped product
data is deleted. Use to clean up a bad run's data without removing the scraper.
Args:
- scraperJobStatusId (string, query param, required): the run's MongoDB
ObjectId. Get from scrapewise_get_scraper_load_history.
Returns:
204 No Content.
Examples:
- Use when: "delete the data from the bad run {scraperJobStatusId}"
- Don't use when: you want to delete the scraper config too → use
scrapewise_delete_scraper with withData=true
Error Handling:
- 400 if scraperJobStatusId is not a valid ObjectId.
- 400 (CustomerError envelope) if no run with that id exists for this customer.
- 401 Unauthorized.
- 409 if some rows of the run could not be deleted. The run is kept; call again.
- 409 RUN_STILL_ENDING: retry after 5 s.
- 500 INTERNAL.[runtime hint] This tool returns JSON-as-text — its response shape is dynamic (per-scraper itemsConfig, file binary, etc.) so the MCP outputSchema is omitted. Do not rely on the presence of any specific field in the response; treat the result as a string-or-object blob and parse defensively.
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": {
"scraperJobStatusId": "<scraperJobStatusId>"
},
"name": "scrapewise_delete_scraper_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scraperJobStatusId | Yes | the run's MongoDB ObjectId. Get from scrapewise_get_scraper_load_history. |