Fast redirect of htaccess from the subfolder?

Could someone tell me how to use .htaccess to redirect the following?

mydomain.com/subfolder to
mydomain.com

I'm sure this is a stupid question, but I've been looking for hours and I have not found an answer yet.

Thanks for your help!