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

# Delete a Dashboard

> Delete a dashboard by ID or name, with soft/hard delete options

# Delete a Dashboard

Delete a dashboard by ID or fully qualified name. Supports soft delete (default), hard delete, and restore operations.

## Delete by ID

**id** `string` *required*

UUID of the dashboard to delete.

**recursive** `boolean` (default: false)

Recursively delete child entities.

**hardDelete** `boolean` (default: false)

Permanently delete the dashboard. If `false`, the dashboard is soft-deleted and can be restored.

## Delete by Name

Use `DELETE /v1/dashboards/name/{fqn}` to delete by fully qualified name.

**fqn** `string` *required*

Fully qualified name of the dashboard, for example `sample_superset.10`.

**recursive** `boolean` (default: false)

Recursively delete child entities.

**hardDelete** `boolean` (default: false)

Permanently delete the dashboard.

## Restore a Soft-Deleted Dashboard

Use `PUT /v1/dashboards/restore` to restore a soft-deleted dashboard.

**id** `string` *required*

UUID of the soft-deleted dashboard to restore.

```python DELETE /v1/dashboards/{id} theme={null}
from metadata.sdk import configure
from metadata.sdk.entities import Dashboards

configure(
    host="https://your-company.open-metadata.org/api",
    jwt_token="your-jwt-token"
)

# Soft delete by ID
Dashboards.delete("03fb5cc3-de48-423f-9926-8e192e5de59d")

# Hard delete
Dashboards.delete(
    "03fb5cc3-de48-423f-9926-8e192e5de59d",
    hard_delete=True
)

# Delete by name (look up the ID first)
entity = Dashboards.retrieve_by_name("sample_superset.10")
Dashboards.delete(entity.id)

# Delete by name with options
entity = Dashboards.retrieve_by_name("sample_superset.10")
Dashboards.delete(entity.id, hard_delete=True)

# Restore a soft-deleted dashboard
Dashboards.restore("03fb5cc3-de48-423f-9926-8e192e5de59d")
```

```java DELETE /v1/dashboards/{id} theme={null}
import java.util.Map;
import org.openmetadata.sdk.network.HttpMethod;

// client is an initialized OpenMetadataClient.

// Soft delete
client.dashboards().delete("03fb5cc3-de48-423f-9926-8e192e5de59d");

// Hard delete
client.dashboards().delete("03fb5cc3-de48-423f-9926-8e192e5de59d", Map.of("hardDelete", "true"));

// Delete by name
client.getHttpClient().execute(
    HttpMethod.DELETE,
    "/v1/dashboards/name/sample_superset.10",
    null,
    Void.class
);

// Restore
client.dashboards().restore("03fb5cc3-de48-423f-9926-8e192e5de59d");
```

```bash DELETE /v1/dashboards/{id} theme={null}
# Soft delete by ID
curl -X DELETE "{base_url}/api/v1/dashboards/03fb5cc3-de48-423f-9926-8e192e5de59d" \
  -H "Authorization: Bearer {access_token}"

# Hard delete
curl -X DELETE "{base_url}/api/v1/dashboards/03fb5cc3-de48-423f-9926-8e192e5de59d?hardDelete=true" \
  -H "Authorization: Bearer {access_token}"

# Delete by name
curl -X DELETE "{base_url}/api/v1/dashboards/name/sample_superset.10" \
  -H "Authorization: Bearer {access_token}"

# Restore soft-deleted dashboard
curl -X PUT "{base_url}/api/v1/dashboards/restore" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{"id": "03fb5cc3-de48-423f-9926-8e192e5de59d"}'
```

```json Response (Soft Delete) theme={null}
{
  "id": "03fb5cc3-de48-423f-9926-8e192e5de59d",
  "name": "10",
  "displayName": "deck.gl Demo",
  "fullyQualifiedName": "sample_superset.10",
  "description": "",
  "version": 0.2,
  "updatedAt": 1769982666437,
  "updatedBy": "admin",
  "sourceUrl": "http://localhost:808/superset/dashboard/10/",
  "service": {
    "id": "b1e6a71d-7f47-4e5f-8ce0-e6e8a88ec97a",
    "type": "dashboardService",
    "name": "sample_superset",
    "fullyQualifiedName": "sample_superset"
  },
  "serviceType": "Superset",
  "deleted": true,
  "owners": [],
  "tags": [],
  "domains": []
}
```

***

## Returns

Soft delete returns the dashboard object with `deleted: true`. Hard delete returns no content (204). Restore returns the restored dashboard object.

***

## Error Handling

| Code | Error Type | Description |
| - | - | - |
| `401` | `UNAUTHORIZED` | Invalid or missing authentication token |
| `403` | `FORBIDDEN` | User lacks permission to delete this dashboard |
| `404` | `NOT_FOUND` | Dashboard with given ID or FQN does not exist |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.