---
title: "Delete a blog by admin"
method: DELETE
path: "/blogs/{blogId}"
tags: ["blogs"]
---

# Delete a blog by admin

`DELETE /blogs/{blogId}`

## Request

- Base URL: `https://staging.api-golang.boilerplate.hng.tech/api/v1`
- URL: `https://staging.api-golang.boilerplate.hng.tech/api/v1/blogs/{blogId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/docs/blogs/:blogId/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `blogId` string, uuid, required

## Response `204`

blog deleted successfully

## Other responses

- `400`: Invalid orgId format
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Internal server error

---

[API](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger.md) - [All operations](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/llms.txt) - [OpenAPI document](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/revisions/2d1d3ed96bb9?raw)
