# Delete dashboard

DELETE http://localhost:5173/api/v1/private/dashboards/{dashboardId}

Delete dashboard by id

Reference: https://www.comet.com/docs/opik/reference/rest-api/dashboards/delete-dashboard

## OpenAPI Specification

```yaml
openapi: 3.1.1
info:
  title: Delete dashboard
  version: endpoint_dashboards.deleteDashboard
paths:
  /v1/private/dashboards/{dashboardId}:
    delete:
      operationId: delete-dashboard
      summary: Delete dashboard
      description: Delete dashboard by id
      tags:
        - - subpackage_dashboards
      parameters:
        - name: dashboardId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '204':
          description: No content
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Dashboards_deleteDashboard_Response_204'
components:
  schemas:
    Dashboards_deleteDashboard_Response_204:
      type: object
      properties: {}

```

## SDK Code Examples

```python
import requests

url = "http://localhost:5173/api/v1/private/dashboards/dashboardId"

response = requests.delete(url)

print(response.json())
```

```javascript
const url = 'http://localhost:5173/api/v1/private/dashboards/dashboardId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "http://localhost:5173/api/v1/private/dashboards/dashboardId"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("http://localhost:5173/api/v1/private/dashboards/dashboardId")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
```

```java
HttpResponse<String> response = Unirest.delete("http://localhost:5173/api/v1/private/dashboards/dashboardId")
  .asString();
```

```php
<?php

$client = new \GuzzleHttp\Client();

$response = $client->request('DELETE', 'http://localhost:5173/api/v1/private/dashboards/dashboardId');

echo $response->getBody();
```

```csharp
var client = new RestClient("http://localhost:5173/api/v1/private/dashboards/dashboardId");
var request = new RestRequest(Method.DELETE);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "http://localhost:5173/api/v1/private/dashboards/dashboardId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```