Delete a tag
DELETE
/tags/{tag}
const url = 'https://feed.work.optidata.cloud/api/tags/89';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://feed.work.optidata.cloud/api/tags/89 \ --header 'Authorization: Bearer <token>'Deletes a tag and removes it from every post.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”tag
required
integer
Numeric id of the tag.
Responses
Section titled “ Responses ”The deleted tag.
Media typeapplication/json
A tag that labels posts.
object
id
required
integer
name
required
string
slug
string
type
string | null
description
string | null
color
required
string
order_column
integer | null
created_at
string format: date-time
updated_at
string format: date-time
Examples
Exampleexample
{ "id": 89, "name": "hr", "slug": "hr", "type": null, "description": null, "color": "success", "order_column": 68, "created_at": "2026-09-02T12:10:14.000000Z", "updated_at": "2026-09-02T12:10:14.000000Z"}No authentication key was sent.
Media typeapplication/json
Authentication failures use an error key.
object
error
required
string
Examples
Exampleexample
{ "error": "JWT passport exception: Missing bearer token in request"}No matching resource, or it is not reachable through this path.
Media typeapplication/json
object
message
required
string
Examples
Exampleexample
{ "message": "No query results for model [App\\Models\\Category] 864"}The authentication key is expired or not recognised. Get a fresh one and retry.
Media typeapplication/json
Authentication failures use an error key.
object
error
required
string
Examples
Exampleexample
{ "error": "JWT passport expired: Passport expired"}