Skip to main content

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

PropertyTypeDescription
siteIdstringThe ID created by illow for your site
cookieNamestringThe 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

PropertyTypeDescription
namestringThe name of the cookie
domainstringThe domain of the cookie
expiresnumberExpiration date of the cookie. Use -1 if the cookie doesn't expire.
categorystringThe category of the cookie. Can be one of preferences, marketing, statistics, or Unclassified
descriptionstringAdditional information about the cookie
isOptInbooleanIndicates if the cookie is an opt-in cookie
wildcardMatchbooleanIndicates 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
}