Skip to main content

Delete a search

DELETE 

/search/:searchId

Delete a search from your search history. The API returns 204 No Content with no body.

A deleted search stays in the GET /v1.1/search list and in the GET /v1.1/search/{searchId} response. The deleted field is true. The id and created_at fields keep their values, the updated_at field has the time of the deletion, and the other fields are null.

Deleting a search doesn't stop it. If the search is still running, its terms keep running, and AlsoAsked refunds the terms that fail or have no results. A term that succeeds after the deletion isn't refunded. AlsoAsked creates no new webhook events for a deleted search, but a webhook event that AlsoAsked created before the deletion can still arrive. In its body, the deleted field is true.

Request​

Responses​

AlsoAsked deleted the search. The response has no body.

Response Headers
    X-AlsoAsked-Credits

    The number of credits that remain in your account. On the live API, the value is your plan credits plus your pay-as-you-go credits. On the sandbox API, the value is your sandbox credits.

    Example: 100
    X-RateLimit-Limit

    The maximum number of requests that you can send in the window of the rate limit.

    Example: 200
    X-RateLimit-Remaining

    The number of requests that you can still send now: the lower of the remaining requests for your API key and for your IP address.

    Example: 184
    X-RateLimit-Reset

    The current time plus the length of the rate limit window, in Unix time (seconds since 1970-01-01T00:00:00+00:00). A request that you send now stops counting at this time. To know when you can send again after a 429 response, use the Retry-After header.

    Example: 1672531200