umount

Unlink a filesystem from its mount point, making it no longer accessible. A filesystem cannot be unmounted when it is busy. More information: https://man.openbsd.org/umount.

umount path/to/device_file

umount path/to/mounted_directory

umount -a