---
title: "Delete an existing Block"
method: DELETE
path: "/{username}/dashboards/{dashboard_id}/blocks/{id}"
tags: ["Blocks"]
---

# Delete an existing Block

`DELETE /{username}/dashboards/{dashboard_id}/blocks/{id}`

## Request

- Base URL: `https://io.adafruit.com/api/v2`
- URL: `https://io.adafruit.com/api/v2/{username}/dashboards/{dashboard_id}/blocks/{id}`
- Auth: one of:
  - API key in header `X-AIO-Key`
  - API key in header `X-AIO-Signature`
  - API key in query parameter `X-AIO-Key`

## Path parameters

- `username` string, required
- `dashboard_id` string, required
- `id` string, required

## Response `200`

Deleted Block successfully

- string

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Server Error

## Changes

- **2016-09-08** (v2) `db91bfb03a83`: 1 info
  - added the non-success response with the status `401`
- **2016-08-18** (v2) `aaa52c04498a`: 1 breaking
  - added the new path request parameter `dashboard_id`

[Operation history](https://skmtc.dev/adafruit/apis/adafruit-io-rest-api/changes/:username/dashboards/:dashboard_id/blocks/:id/delete.md)

---

[API](https://skmtc.dev/adafruit/apis/adafruit-io-rest-api.md) - [All operations](https://skmtc.dev/adafruit/apis/adafruit-io-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/adafruit/apis/adafruit-io-rest-api/revisions/b16cd6123537?raw)
