Skip to main content
AI agents are now live in Website Scanner! Enter your URL and fix website issues 3x faster with AI. Explore now!
No Result Found
Get your setup working faster. Join our Discord for optimisation tips from elite testers. Join our DiscordJoin our Discord

Delete cookie config API in Website Scanner

Use this API to delete a cookie configuration. Scans already using the configuration continue to run with the last known cookie values.

DELETE /api/website-scanner/v1/cookie_configs/{id}

If Geo Region Restriction (GRR) is enabled for your account, add your region code to the host name: api-accessibility-<region>.browserstack.com. See Geo Region Restriction endpoints for the region codes and examples.

Request parameters

Request

curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
     -X DELETE "https://api-accessibility.browserstack.com/api/website-scanner/v1/cookie_configs/24"
  • id* Integer

    The unique ID of the cookie configuration to delete.

Response attributes 200 OK JSON

Response

{
    "success": true,
    "data": {
        "message": "Cookie configuration has been deleted"
    },
    "error": null
}
  • success Boolean

    Indicates whether the request was successful.

  • data Object

    Contains the deletion confirmation message.

    â–¶ SHOW VALUES
    • message String

      Confirmation message indicating the cookie configuration has been deleted.

Error responses 404 Not Found

The API returns a 404 status code if the cookie configuration ID doesn’t exist or belongs to another account.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Download Copy Check Circle