This article explains how to reset a Chromecast device if you're having trouble streaming media. You can also reset your Chromecast to factory settings before selling it or giving it to someone else.
Google Chromecast 3rd Gen: Factory Reset to Start
Before you begin, make sure that your Chromecast is properly connected to an HDMI port on your television. It should also be connected to a power source and your Wi-Fi network. If the device is still not working properly, follow these steps to perform a factory reset:
Open the Google Home app on your Android or iOS device.
Tap the name of your Chromecast device.