Skip to content
Skip to Content
DevelopersAPI referenceTags

Delete tags from all the user's items

POST
/v1/tags/delete

Removes the tags from the user's items (own and AI tags; archived items too) and dismisses them on those items, so tagging them again does not suggest them back. Allowed while the library is read-only over its plan's limits. Smart Spaces and rules that name a deleted or renamed tag are not changed. An API key needs write access to items.

Authorization

bearer
headerAuthorizationBearer <token>

A personal API key (ga_…), sent as Authorization: Bearer ga_…. A key gets 403 on a resource it has no access to, and on anything that changes data without write access.

Request Body

application/json
  1. body
tags*array<>
Items1 <= items <= 50

Response Body

Done. items is how many of the user's items changed.

application/json
  1. response
items*integer
Range0 <= value
Example Request
curl -X POST 'https://example.com/v1/tags/delete' \  -H 'Content-Type: application/json' \  -d '{  "tags": [    "string"  ]}'
Example Response
{  "items": 0}