---
title: Clear/Destroy Canvas
order: 18
---

### graph.clear()

Clear all the items in the canvas. This function is used for reseting the data source and re-rendering the graph.

**Usage**

```javascript
graph.clear();
```

### graph.destroy()

Destroy the graph.

**Usage**

```javascript
graph.destroy();
```
