If you factory reset it then whomever received it would have to link it to their own Roku account, but you can check your Roku account at https://my.roku.com to see if it still shows up as one of your devices and if so, unlink it.
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.