# タグの削除

`DELETE /api/tag/{tagId}`

URL: https://repsona.com/ja/api/delete-tag-tagid

タグを削除します。タスク・ノート・プロジェクト・ユーザーへの紐付けも外れます。管理者だけが使えます。

## パラメーター

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `tagId` | path | integer | 必須 | タグの ID です。 |

## リクエスト

```sh
curl -X DELETE "https://<space>.repsona.com/api/tag/{tagId}" \
  -H "Authorization: Bearer $REPSONA_API_KEY"
```

## レスポンス

- 200: Deleted
- 401: Authentication is required
- 403: Admin only
- 404: Tag not found

## レスポンスの例

```json
{
  "ok": true
}
```
