Clear Searches
4 min
Clear Searches
All of the Searches in a batch can be cleared by making an HTTP DELETE request to the /batches/BATCH_ID/clear endpoint (where BATCH_ID is the id of the Batch).
Batch Status Batches can only be cleared from a Batch when it is not running. To check whether a Batch is currently running use the Get Batch endpoint.
Example
DELETE /batches/BATCH_ID/clear
In the example below we clear a Batch with id=123456 :
$ curl -X DELETE "https://api.valueserp.com/batches/123456/clear?api_key=demo"VALUE SERP responds with a JSON object confirming that the batch has been cleared:
{
"request_info": {
"success": true,
"message": "Batch searches cleared"
}
}
Next Steps Update Search List Search