Closes a [toast notification](../../components/toast.md) by id. Pass an empty dictionary to close every toast on the page.

---

### Parameters

**paramsDict** `Dictionary`<br />
<table class='dictionaryKeyTable'>
 <tbody>
 <tr><td> - id</td><td>String</td><td>Not required. The id of the toast to close, as returned by `show`. If omitted, every toast on the page is closed.</td></tr>
 <tr><td> - sessionId</td><td>String</td><td>The session the toast is in. Required from Gateway scripts.</td></tr>
 <tr><td> - pageId</td><td>String</td><td>The page the toast is on. Required from Gateway scripts.</td></tr>
 </tbody>
</table>

---

### Returns

---

### Example

```python
toastId = system.kanoa.toast.show({"message": "Working...", "loading": True, "autoClose": 0})

# Close one toast
system.kanoa.toast.dismiss({"id": toastId})

# Close every toast on the page
system.kanoa.toast.dismiss({})
```
