You can use the vSphere Automation API to manipulate entries in data sets.

You can use data set operations to share information between a virtual machine and its guest operating system. The available operations include listing data sets, retrieving data set information, creating, modifying, and deleting a data set. You can also manipulate individual entries in a data set. The available operations include listing entry keys in a data set, retrieving the value of an entry in a data set, modifying and deleting an entry in a data set.

Table 1. User Operations
Operation Description
List data sets You can list all available data sets of a virtual machine.
Get data set You can retrieve information about a specific data set.
Create data set You can create a new data set.
Update data set You can modify the attributes of a data set.
Delete data set You can delete a data set.
List data set entry keys You can list all entry keys in a data set.
Get data set entry key value You can retrieve the value of a specific entry in a data set.
Set data set entry key value You can create or update an entry in a data set. If the new entry does not contain a key that matches an existing key, the operation creates a new entry. If the new entry contains a key that matches an existing key, the new key overwrites the value of the existing key.
Delete data set entry key value You can delete an entry in a data set.