POST
/api/v1/profiles/{id}/cookies/remove
Delete selected cookies including pending copies
Request#
POSIX shell · curl
curl --fail-with-body --request POST \
"$ADBR_API_URL/api/v1/profiles/{id}/cookies/remove" \
-H "Authorization: Bearer $ADBR_API_TOKEN" \
-H "Content-Type: application/json" \
--data @request.jsonUse the local address and token from API & MCP. Replace path placeholders such as {id} with actual IDs. Create request.json according to the body schema below before running this command.
Authentication and permissions#
Authentication: Bearer token
Scopes: cookies:write
All listed scopes are required; admin satisfies scope checks. Account permissions, request content, vault state and resource permissions can impose additional requirements.
Parameters#
| Parameter | Location | Required | Description |
|---|---|---|---|
id | path | Yes |
Complete parameter schemas
OpenAPI JSON
[
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"in": "path",
"name": "id",
"required": true
}
]Request body#
Required.
| Field | Type | Required | Description |
|---|---|---|---|
cookies | array | Yes |
Complete body schema
OpenAPI JSON
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"cookies"
],
"properties": {
"cookies": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"value",
"domain",
"host_only",
"path",
"expires",
"http_only",
"secure",
"same_site",
"session",
"partition_key",
"priority",
"source_scheme",
"source_port",
"creation",
"last_access"
],
"properties": {
"firefox": {
"type": "object",
"required": [
"partition_key",
"partitioned",
"user_context_id"
],
"properties": {
"partition_key": {
"type": "string"
},
"partitioned": {
"type": "boolean"
},
"user_context_id": {
"type": "integer"
}
}
},
"name": {
"type": "string"
},
"value": {
"type": "string"
},
"domain": {
"type": "string"
},
"host_only": {
"type": "boolean"
},
"path": {
"type": "string"
},
"expires": {
"type": [
"null",
"number"
]
},
"http_only": {
"type": "boolean"
},
"secure": {
"type": "boolean"
},
"same_site": {
"type": "string"
},
"session": {
"type": "boolean"
},
"partition_key": {
"anyOf": [
{
"type": "object",
"required": [
"top_level_site",
"has_cross_site_ancestor"
],
"properties": {
"top_level_site": {
"type": "string"
},
"has_cross_site_ancestor": {
"type": "boolean"
}
}
},
{
"type": "null"
}
]
},
"priority": {
"type": [
"null",
"string"
]
},
"source_scheme": {
"type": [
"null",
"string"
]
},
"source_port": {
"type": [
"null",
"integer"
]
},
"creation": {
"type": [
"null",
"number"
]
},
"last_access": {
"type": [
"null",
"number"
]
}
}
},
"minItems": 1,
"maxItems": 20000
}
},
"additionalProperties": false
}
}
}
}Responses#
200 · Default response
OpenAPI JSON
{
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"removed"
],
"properties": {
"removed": {
"type": "integer"
}
}
}
}
}
}default · HTTP error envelope. The status and error.code identify the failure.
OpenAPI JSON
{
"description": "HTTP error envelope. The status and error.code identify the failure.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}General authentication and transport errors may occur in addition to the documented responses.
OpenAPI definition#
Complete operation definition
OpenAPI JSON
{
"summary": "Ausgewählte Cookies einschließlich vorgemerkter Kopien löschen",
"tags": [
"Cookies"
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"cookies"
],
"properties": {
"cookies": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"value",
"domain",
"host_only",
"path",
"expires",
"http_only",
"secure",
"same_site",
"session",
"partition_key",
"priority",
"source_scheme",
"source_port",
"creation",
"last_access"
],
"properties": {
"firefox": {
"type": "object",
"required": [
"partition_key",
"partitioned",
"user_context_id"
],
"properties": {
"partition_key": {
"type": "string"
},
"partitioned": {
"type": "boolean"
},
"user_context_id": {
"type": "integer"
}
}
},
"name": {
"type": "string"
},
"value": {
"type": "string"
},
"domain": {
"type": "string"
},
"host_only": {
"type": "boolean"
},
"path": {
"type": "string"
},
"expires": {
"type": [
"null",
"number"
]
},
"http_only": {
"type": "boolean"
},
"secure": {
"type": "boolean"
},
"same_site": {
"type": "string"
},
"session": {
"type": "boolean"
},
"partition_key": {
"anyOf": [
{
"type": "object",
"required": [
"top_level_site",
"has_cross_site_ancestor"
],
"properties": {
"top_level_site": {
"type": "string"
},
"has_cross_site_ancestor": {
"type": "boolean"
}
}
},
{
"type": "null"
}
]
},
"priority": {
"type": [
"null",
"string"
]
},
"source_scheme": {
"type": [
"null",
"string"
]
},
"source_port": {
"type": [
"null",
"integer"
]
},
"creation": {
"type": [
"null",
"number"
]
},
"last_access": {
"type": [
"null",
"number"
]
}
}
},
"minItems": 1,
"maxItems": 20000
}
},
"additionalProperties": false
}
}
}
},
"parameters": [
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"in": "path",
"name": "id",
"required": true
}
],
"x-required-scopes": [
"cookies:write"
],
"responses": {
"200": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"removed"
],
"properties": {
"removed": {
"type": "integer"
}
}
}
}
}
},
"default": {
"description": "HTTP error envelope. The status and error.code identify the failure.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}