If you created the datastore during the esxi installation the scratch location will be pointing to to your datastore by default, you need to remove logging by remove the value from "ScratchConfig.ConfiguredScratchLocation" and "ScratchConfig.CurrentScratchLocation" under Host -> Manage -> System -> Advanced settings.
Reboot the host and try to remove the datastore again.