how too eject an usb drive ?

Hello from France
appleTV flashed ; USB external Hard drive
How too eject an external USB drive without damaging the directory .
I put the appleTV to sleep , but i nedded to use techtool to recover USB drives’ directory .
I can unplug the appleTV from electric network but it seems ugly.
Have you a better idea?
thanks

To unmount the drive (so it can be disconnected while the AppleTV is still powered on) highlight the drive in the nitoTV > Files menu. Press the left arrow (<<) button and the drive will disappear from the list. It can now be safely disconnected.

thanks