I am trying to clear off the swap file for a VM. I have already set the "Reserve all guestmemory (All locked)" (Screenshot1) and rebooted the server but the swap file is still there in the datastore (Screenshot2).
The current memory usage is as follows (Screenshot3)
Please advise. Thanks.
Try to do a storage vMotion and check if the swap file which is not in use might left behind in datastore and then you can delete the same.