# Clean up unused videos

See which Bunny videos no lesson uses any more, and have them deleted after a waiting time.

When you replace the video of a lesson, the old one stays at Bunny and takes up storage. The platform finds such videos and deletes them if you want.

## When a video counts as used

A video counts as used while it appears anywhere in your content: as the video of a lesson, in a text, on a page or with a product. Content in the trash counts too. When in doubt, a video counts as used.

## Turn on the clean-up

1. Open **Admin**, **Integrations**, **Bunny Stream**.
2. Under **Unused videos**, pick a waiting time, for example **After 30 days**.
3. Click **Save**.

The platform checks the library every hour. The table below lists each unused video with the day it is deleted. If a video is used again before then, it leaves the list.

> [!WARNING]
> Deleted videos are gone from Bunny for good. Pick a waiting time that lets you notice a mistake first.

## What the platform checks first

- Right before it deletes, it searches all content again.
- If Bunny does not answer, or the list does not match your lessons, it deletes nothing.
- If more than 25 videos are due at once, it deletes nothing and tells you.
- A video younger than the waiting time always stays.

Every deletion is in the log. With no waiting time (**Never**) everything stays. That is the default.

> [!TIP]
> Your AI assistant shows where each video is used with `media.videos`.
