Deleting a Specific Cookie
To delete a specific company cookie for a site, send a DELETE request to this endpoint:
danger
Once a cookie is deleted, it cannot be recovered. To use it again, you will need to create a new one with the same attributes.
Endpoint:
https://api.platform.illow.io/open-api/v1/cookies/{siteId}/cookie/{cookieName}
This endpoint requires the following attributes in the query parameters:
Query Parameters
Property | Type | Description |
---|---|---|
siteId | string | The ID created by illow for your site |
cookieName | string | The name of the cookie to be deleted |
Response
The API will respond with one of the following status codes:
204
: Successfully deleted the company cookie.
Response Format: JSON
Property | Type | Description |
---|---|---|
name | string | The name of the cookie |
domain | string | The domain of the cookie |
expires | number | Expiration date of the cookie. Use -1 if the cookie doesn't expire. |
category | string | The category of the cookie. Can be one of preferences, marketing, statistics, or Unclassified |
description | string | Additional information about the cookie |
isOptIn | boolean | Indicates if the cookie is an opt-in cookie |
wildcardMatch | boolean | Indicates if the cookie allows wildcard matches in the domain and path fields |
404
: The requested cookie was not found.500
: Internal server error. The request has failed.
Example
This example illustrates the response of a DELETE request for the cookie named 'CONSENT':
{
"name": "CONSENT",
"domain": "example.com",
"expires": 1689467134,
"category": "Statistics",
"description": "This cookie collects statistical data for website analytics.",
"isOptIn": true,
"wildcardMatch": false
}