> ## Documentation Index
> Fetch the complete documentation index at: https://docs.launchmystore.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Blog

> Delete a blog

# Delete Blog

Permanently deletes a blog and all its articles. This action cannot be undone.

## Request

<CodeGroup>
  ```bash cURL theme={null}
  curl -X DELETE "https://api.launchmystore.io/api/v1/blogs/blog_abc123.json" \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
  ```

  ```javascript Node.js theme={null}
  const response = await fetch('https://api.launchmystore.io/api/v1/blogs/blog_abc123.json', {
    method: 'DELETE',
    headers: {
      'Authorization': 'Bearer YOUR_ACCESS_TOKEN'
    }
  });
  ```
</CodeGroup>

## Path Parameters

<ParamField path="id" type="string" required>
  The unique blog ID to delete
</ParamField>

## Response

The response uses the standard `{ status, state, message, data }` envelope.
On success `state` is `"success"`, `message` confirms the deletion, and
`data` is omitted.

<ResponseField name="status" type="integer">
  HTTP status code (`200` on success)
</ResponseField>

<ResponseField name="state" type="string">
  `"success"` or `"error"`
</ResponseField>

<ResponseField name="message" type="string">
  Human-readable confirmation message
</ResponseField>

## Example Response

```json theme={null}
{
  "status": 200,
  "state": "success",
  "message": "Blog deleted successfully"
}
```

## Notes

* Articles within the blog are detached from the blog when it is deleted.
* Navigation menu links pointing to this blog will become broken.
* Consider exporting articles before deletion if you need to preserve content.

## Error Codes

Errors return the same envelope with `state: "error"` and a `message`.

| Status | `message`        | When                                       |
| ------ | ---------------- | ------------------------------------------ |
| `401`  | —                | Invalid or missing access token            |
| `403`  | —                | App doesn't have the `write_content` scope |
| `404`  | `Blog not found` | No blog with the specified ID exists       |
