You can enlarge the disk of a virtual machine on ESXi, but you cannot shrink it. This is not recommended.
As far as I can see, it is installed on the C disk of the operating system. You can give the virtual machine a new disk, move the data in the F drive to the new disk, and then erase the F disk. This would be a smoother way.