# Stream Cleanup

Sx Bot supports stream cleanup in notifications. This allows you to automatically manage the notification message when a streamer ends their Twitch stream. You can delete the live message or edit to show stream details such as total stream time, and link to the VOD, if available.&#x20;

## How to set up stream cleanup <a href="#how-to-set-up-stream-cleanup" id="how-to-set-up-stream-cleanup"></a>

1. [Invite the bot](https://invite.sxbot.io) if you haven't already.
2. Use the command **`/twitch add`**  and choose the **`clean-up`** option to choose whether you want to delete the live message, or edit the message to display stream stats and link to the VOD.
3. All done! Next time your stream ends, the message will either be deleted or edit depending on the option you choose.

<figure><img src="https://3235107011-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPR38BTXhzW04xdbh6h1o%2Fuploads%2FwwSEtXT2LEiK5krkuklO%2Fimage.png?alt=media&#x26;token=f9ffbf2b-dfa8-4a82-9583-cf09fbc4469b" alt=""><figcaption><p>Edited twitch streamer notification example</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sxbot.io/twitch-notifications/stream-cleanup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
